You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lc...@apache.org on 2017/05/31 00:49:30 UTC
[1/2] beam git commit: [BEAM-1544] Java cross-JDK version tests on
Jenkins
Repository: beam
Updated Branches:
refs/heads/master f9431a390 -> 2fa24d89c
[BEAM-1544] Java cross-JDK version tests on Jenkins
Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/2f9a38e5
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/2f9a38e5
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/2f9a38e5
Branch: refs/heads/master
Commit: 2f9a38e5fa7afa9cd4751980e6cbb989e260aaa2
Parents: f9431a3
Author: Mark Liu <ma...@google.com>
Authored: Fri May 19 11:24:15 2017 -0700
Committer: Luke Cwik <lc...@google.com>
Committed: Tue May 30 17:48:53 2017 -0700
----------------------------------------------------------------------
.../jenkins/common_job_properties.groovy | 4 +-
..._beam_PostCommit_Java_JDKVersionsTest.groovy | 60 ++++++++++++++++++++
2 files changed, 63 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/beam/blob/2f9a38e5/.test-infra/jenkins/common_job_properties.groovy
----------------------------------------------------------------------
diff --git a/.test-infra/jenkins/common_job_properties.groovy b/.test-infra/jenkins/common_job_properties.groovy
index f47ab28..5ba12fe 100644
--- a/.test-infra/jenkins/common_job_properties.groovy
+++ b/.test-infra/jenkins/common_job_properties.groovy
@@ -188,7 +188,9 @@ class common_job_properties {
// Disable archiving the built artifacts by default, as this is slow and flaky.
// We can usually recreate them easily, and we can also opt-in individual jobs
// to artifact archiving.
- context.archivingDisabled(true)
+ if (context.metaClass.respondsTo(context, 'archivingDisabled', boolean)) {
+ context.archivingDisabled(true)
+ }
}
// Sets common config for PreCommit jobs.
http://git-wip-us.apache.org/repos/asf/beam/blob/2f9a38e5/.test-infra/jenkins/job_beam_PostCommit_Java_JDKVersionsTest.groovy
----------------------------------------------------------------------
diff --git a/.test-infra/jenkins/job_beam_PostCommit_Java_JDKVersionsTest.groovy b/.test-infra/jenkins/job_beam_PostCommit_Java_JDKVersionsTest.groovy
new file mode 100644
index 0000000..f23e741
--- /dev/null
+++ b/.test-infra/jenkins/job_beam_PostCommit_Java_JDKVersionsTest.groovy
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import common_job_properties
+
+// This job runs the Java postcommit tests cross multiple JDK versions.
+matrixJob('beam_PostCommit_Java_JDK_Versions_Test') {
+ description('Runs postcommit tests on the Java SDK in multiple Jdk versions.')
+
+ // Set common parameters.
+ common_job_properties.setTopLevelMainJobProperties(delegate)
+
+ // Set JDK versions.
+ axes {
+ label('label', 'beam')
+ jdk('JDK 1.7 (latest)',
+ 'OpenJDK 7 (on Ubuntu only)',
+ 'OpenJDK 8 (on Ubuntu only)')
+ }
+
+ // Sets that this is a PostCommit job.
+ common_job_properties.setPostCommit(
+ delegate,
+ '0 */6 * * *',
+ false)
+
+ // Allows triggering this build against pull requests.
+ common_job_properties.enablePhraseTriggeringFromPullRequest(
+ delegate,
+ 'Java JDK Version Test',
+ 'Run Java JDK Version Test')
+
+ // Maven build for this job.
+ steps {
+ maven {
+ // Set maven parameters.
+ common_job_properties.setMavenConfig(delegate)
+
+ // Maven build project.
+ // Skip beam-sdks-python since this test is only apply to Java.
+ // TODO[BEAM-2322,BEAM-2323,BEAM-2324]: Re-enable beam-runners-apex once the build is passed.
+ goals('-B -e -P dataflow-runner clean install -pl \'!org.apache.beam:beam-sdks-python,!org.apache.beam:beam-runners-apex\' -DskipITs=false -DintegrationTestPipelineOptions=\'[ "--project=apache-beam-testing", "--tempRoot=gs://temp-storage-for-end-to-end-tests", "--runner=TestDataflowRunner" ]\'')
+ }
+ }
+}
[2/2] beam git commit: [BEAM-1544] Java cross-JDK version tests on
Jenkins\n\nThis closes #3184
Posted by lc...@apache.org.
[BEAM-1544] Java cross-JDK version tests on Jenkins\n\nThis closes #3184
Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/2fa24d89
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/2fa24d89
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/2fa24d89
Branch: refs/heads/master
Commit: 2fa24d89c83f287b55c7aeeeb6a53bc48194adbc
Parents: f9431a3 2f9a38e
Author: Luke Cwik <lc...@google.com>
Authored: Tue May 30 17:49:22 2017 -0700
Committer: Luke Cwik <lc...@google.com>
Committed: Tue May 30 17:49:22 2017 -0700
----------------------------------------------------------------------
.../jenkins/common_job_properties.groovy | 4 +-
..._beam_PostCommit_Java_JDKVersionsTest.groovy | 60 ++++++++++++++++++++
2 files changed, 63 insertions(+), 1 deletion(-)
----------------------------------------------------------------------