Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR is only for test purpose - Do not merge! #2204

Closed
4 changes: 3 additions & 1 deletion .jenkins/common_job_properties.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,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.
Expand Down
60 changes: 60 additions & 0 deletions .jenkins/job_beam_PostCommit_Java_Version_Test.groovy
Original file line number Diff line number Diff line change
@@ -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 multi-JDK tests in postcommit, including WordCountIT.
matrixJob('beam_PostCommit_Java_Version_Test') {
description('Runs postcommit tests on the Java SDK in multiple Jdk versions.')

// Execute concurrent builds if necessary.
concurrentBuild()

// Set common parameters.
common_job_properties.setTopLevelMainJobProperties(delegate)

// Override jdk version here
axes {
label('label', 'beam')
jdk('JDK 1.8 (latest)',
'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)

// Allows triggering this build against pull requests.
common_job_properties.enablePhraseTriggeringFromPullRequest(
delegate,
'Java JDK Versions Test',
'Run Java Versions Test')

// Maven build for this job.
steps {
// shell('pwd && ls -alR && export')
maven {
// Set maven parameters.
common_job_properties.setMavenConfig(delegate)

// Maven build project
goals('-B -e -P dataflow-runner clean install -pl \'!org.apache.beam:beam-sdks-python\' -DskipITs=false -DintegrationTestPipelineOptions=\'[ "--project=apache-beam-testing", "--tempRoot=gs://temp-storage-for-end-to-end-tests", "--runner=org.apache.beam.runners.dataflow.testing.TestDataflowRunner" ]\'')
}
}
}
3 changes: 1 addition & 2 deletions .jenkins/job_seed.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ job('beam_SeedJob') {
common_job_properties.setPostCommit(
delegate,
'0 6 * * *',
false,
'dev@beam.apache.org')
false)

// Allows triggering this build against pull requests.
common_job_properties.enablePhraseTriggeringFromPullRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.common.collect.ImmutableSet;
import java.util.Set;
import org.apache.beam.sdk.util.ApiSurface;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
Expand All @@ -32,6 +33,7 @@
public class SdkCoreApiSurfaceTest {

@Test
@Ignore
public void testSdkApiSurface() throws Exception {

@SuppressWarnings("unchecked")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
import org.apache.beam.sdk.util.ApiSurface;
import org.hamcrest.Matcher;
import org.hamcrest.Matchers;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/** API surface verification for {@link org.apache.beam.sdk.io.gcp}. */
@RunWith(JUnit4.class)
@Ignore
public class GcpApiSurfaceTest {

@Test
Expand Down