X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb-templates%2Fdistribution-check.yaml;h=6962b7d74e988ed85e0398e34ffca0855cccd360;hb=dcb41f639bc14ea0db28f09ff3a4516892ab5d72;hp=1d73a75fff69cc406e902475365c40c24ac1c89e;hpb=d690f73ece45bcbfff0db15901e4bef6458e9ba1;p=releng%2Fbuilder.git diff --git a/jjb-templates/distribution-check.yaml b/jjb-templates/distribution-check.yaml index 1d73a75ff..6962b7d74 100644 --- a/jjb-templates/distribution-check.yaml +++ b/jjb-templates/distribution-check.yaml @@ -13,8 +13,8 @@ jdk: '{jdk}' logrotate: - daysToKeep: '14' - numToKeep: '10' + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' @@ -29,19 +29,15 @@ scm: - integration-gerrit-scm: - credentials-id: '{ssh-credentials}' basedir: '$GERRIT_PROJECT' refspec: '$GERRIT_REFSPEC' branch: '{branch}' - integration-distribution-scm: - credentials-id: '{ssh-credentials}' branch: '{branch}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit: @@ -71,23 +67,26 @@ notbuilt: false prebuilders: - - wipe-org-opendaylight-repo - maven-target: maven-version: '{mvn33}' pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}' + goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -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: '{JENKINS_SETTINGS}' - global-settings: '{odl-global-settings}' + settings: 'JENKINS_SETTINGS' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp maven: maven-name: '{mvn33}' root-pom: 'distribution/pom.xml' - goals: 'clean install -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + goals: 'clean install -V -B -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: '{JENKINS_SETTINGS}' - global-settings: '{odl-global-settings}' + settings: 'JENKINS_SETTINGS' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp ignore-upstream-changes: true post-step-run-condition: 'SUCCESS' @@ -95,9 +94,16 @@ - integration-distribution-check publishers: - - archive: - artifacts: 'karaf.log' - - archive: - artifacts: 'karaf_console.log' - email-notification: email-prefix: '[PROJECT_SHORTNAME]' + - postbuildscript: + builders: + - shell: | + #!/bin/bash + mkdir -p $WORKSPACE/archives + cp karaf*.log $WORKSPACE/archives + script-only-if-succeeded: False + script-only-if-failed: False + mark-unstable-if-failed: True + - archive-build: + maven-version: '{mvn33}'