From: Vratko Polak Date: Thu, 6 Oct 2016 17:08:22 +0000 (+0200) Subject: Revert "Strengthen distribution-check" X-Git-Tag: release/beryllium-sr4~39^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=releng%2Fbuilder.git;a=commitdiff_plain;h=b223ffdfb5d087031e6ca564b89403d837274443 Revert "Strengthen distribution-check" This reverts commit 6914bb13060c60cf65d51f58775e2f39959c99ed. The new distribution-check is failing. Until the exact cause is identified and fixed, we should use the previous job so projects can make progress. Change-Id: I874c9834fb6cd93d1e00b46d2aa7213c68a44fda Signed-off-by: Vratko Polak --- diff --git a/jjb/releng-templates-java.yaml b/jjb/releng-templates-java.yaml index c55153537..1226b9ca8 100644 --- a/jjb/releng-templates-java.yaml +++ b/jjb/releng-templates-java.yaml @@ -127,7 +127,7 @@ maven-version: '{mvn33}' - job-template: - # Template: {project-name}-distribution-check-{stream} + # Template: {name}-distribution-check-{stream} # Goal: Build a patch and make sure the distribution can deploy with this change # Operation: This job template builds a patch, creates a distribution containing # the patch, and triggers the distribution deploy test @@ -194,85 +194,26 @@ notbuilt: false builders: - # This step is to cache artifacts needed to build distribution. "fr" stands for "fake remote". - # Running SingleFeaturesTest here does not seem to be required. - - maven-target: - maven-version: '{mvn33}' - pom: 'distribution/pom.xml' - goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/fr -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/fr' - java-opts: - - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: '{mvn-settings}' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - # Now delete artifacts related to $GERRIT_PROJECT. To be safe, delete {project-name} location as well. - - shell: | - rm -rfv /tmp/fr/org/opendaylight/$GERRIT_PROJECT - rm -rfv /tmp/fr/org/opendaylight/{project-name} - # Now build project in really local repository /tmp/r/ and deploy to /tmp/fr/. - # We could copy some artifacts from /tmp/fr/ to /tmp/r/, - # but that would hide errors of missing POM dependency references. - # Ordinary SingleFeatureTest failures are detected in verify job, so we can use "q" profile here. - maven-target: maven-version: '{mvn33}' pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean deploy dependency:tree -DoutputFile=dependency_tree.txt -V -B -Pq -DaltDeploymentRepository=fake-remote::default::file:///tmp/fr/ -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' + goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Pq -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' java-opts: - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' settings: '{mvn-settings}' settings-type: cfp global-settings: 'odl-global-settings' global-settings-type: cfp - # Now wipe the local repository. - - shell: | - rm -rf /tmp/r - # Now the ugly part. It seems that the only way to tell Maven 2+ - # which remote repositories to use is via settings.xml file. - # So we create such file here. - - shell: | - set -exu - echo ' - - - - file - - - file - file - file:///tmp/fr/ - - - - - - - file - file - file:///tmp/fr/ - - - - - - - - ' > fake_remotes.xml - # Finally, repeat the distribution build but with the new settings. - # We cannot use --offline, because: "Cannot access file (file:///tmp/fr) in offline mode" - # This final build step not only detects when important project artifacts are not deployed, - # but also when they are deployed and just POM dependency reference for them is missing. - # For that, not only distribution-karaf is to be built, but also features, and without skipping SingleFeatureTest. - maven-target: maven-version: '{mvn33}' pom: 'distribution/pom.xml' - goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -s fake_remotes.xml -V -B -Pq,file -DskipTests=false -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + goals: 'clean install dependency:tree -DoutputFile=dependency_tree.txt -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp - integration-distribution-check publishers: @@ -413,7 +354,6 @@ global-settings-file: 'odl-global-settings' settings-file: '{mvn-settings}' - # TODO: Do we want to apply sophisticated checks as in *-distribution-check-*? maven: maven-name: '{mvn33}' goals: '{mvn-goals} -V -B -Djenkins -Dmerge -Dstream={stream} -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'