From: Thanh Ha Date: Wed, 12 Apr 2017 19:30:39 +0000 (-0400) Subject: Make patch-test job deploy to Nexus X-Git-Tag: release/carbon~150^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=79f49ddf33f4a9706bca49d31cea0fbe2bfe7d3b;p=releng%2Fbuilder.git Make patch-test job deploy to Nexus This patch converts the patch-test job from a Maven project to a freestyle project type and then reconfigures it to push the distribution it builds to Nexus. Finally storing BUNDLE_URL as a variable to be passed to downstream projects so that they can build against it. Issue: RELENG-11 Change-Id: I36100615ddc375648205fe7674335d9f1e55e4c4 Signed-off-by: Thanh Ha --- diff --git a/jjb/integration/include-raw-integration-get-bundle-vars.sh b/jjb/integration/include-raw-integration-get-bundle-vars.sh index b65eb4abb..a387e0682 100644 --- a/jjb/integration/include-raw-integration-get-bundle-vars.sh +++ b/jjb/integration/include-raw-integration-get-bundle-vars.sh @@ -22,11 +22,6 @@ if [ ${BUNDLEURL} == 'last' ]; then BUNDLEFOLDER="distribution-karaf-${BUNDLEVERSION}" BUNDLE="distribution-karaf-${TIMESTAMP}.zip" ACTUALBUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}" -elif [[ ${BUNDLEURL} == *"distribution-check"* ]]; then - ACTUALBUNDLEURL="${BUNDLEURL}" - BUNDLE="${BUNDLEURL##*/}" - BUNDLEFOLDER="${BUNDLE//.zip}" - BUNDLEVERSION="${BUNDLEFOLDER//distribution-karaf-}" else ACTUALBUNDLEURL="${BUNDLEURL}" BUNDLE="${BUNDLEURL##*/}" @@ -59,4 +54,3 @@ JAVA_HOME=${JAVA_HOME} EOF # vim: ts=4 sw=4 sts=4 et ft=sh : - diff --git a/jjb/integration/integration-templates.yaml b/jjb/integration/integration-templates.yaml index c4d0c2baa..187dd76cb 100644 --- a/jjb/integration/integration-templates.yaml +++ b/jjb/integration/integration-templates.yaml @@ -1331,7 +1331,7 @@ - job-template: name: '{project}-patch-test-{feature}-{stream}' - project-type: maven + project-type: freestyle node: centos7-java-builder-2c-8g concurrent: true jdk: '{jdk}' @@ -1355,6 +1355,8 @@ name: feature default: 'all' description: 'Specific feature test for patch' + - maven-exec: + maven-version: mvn33 scm: - integration-gerrit-scm: @@ -1388,50 +1390,41 @@ unstable: true notbuilt: true - prebuilders: + builders: - integration-rebase-gerrit-patch - - integration-get-bundle-url: - bundle-pom: distribution/pom.xml - wipe-org-opendaylight-repo - - provide-maven-settings: - global-settings-file: 'odl-global-settings' - settings-file: 'integration-settings' - maven-target: - maven-version: 'mvn33' + maven-version: mvn33 pom: '{project}/pom.xml' - goals: > + goals: | clean install dependency:tree - -V -B -Pq + -Pq -Dgitid.skip=false - -Djenkins -DgenerateReports=false - -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream} + {opendaylight-infra-mvn-opts} java-opts: - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: 'integration-settings' + settings: integration-settings settings-type: cfp - global-settings: 'odl-global-settings' + global-settings: odl-global-settings global-settings-type: cfp - - maven: - maven-name: 'mvn33' - root-pom: 'distribution/pom.xml' - goals: > - clean install dependency:tree - -V -B -Pq - -Dgitid.skip=false - -Djenkins - -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r - maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' - settings: 'integration-settings' - settings-type: cfp - global-settings: 'odl-global-settings' - global-settings-type: cfp - ignore-upstream-changes: true - post-step-run-condition: 'SUCCESS' - - postbuilders: + - maven-target: + maven-version: mvn33 + pom: distribution/pom.xml + goals: | + clean install dependency:tree + -Pq + -Dgitid.skip=false + {opendaylight-infra-mvn-opts} + java-opts: + - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true' + settings: integration-settings + settings-type: cfp + global-settings: odl-global-settings + global-settings-type: cfp + - distribution-check-deploy-distribution: + dist-pom: distribution/pom.xml - trigger-builds: - project: '{csit-list}' block: true