X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Funimgr%2Funimgr.yaml;h=a97332bfce7f753ad3f2c911b0243fc3a036701d;hb=12dddebb9ac20a9e4ba9ae72596d28052c4bf043;hp=3aaf535acbcfb6ca7e4a5187c142a88ce3d1330a;hpb=cba1c62674a2af9748e173dc9096542f7b7d2714;p=releng%2Fbuilder.git diff --git a/jjb/unimgr/unimgr.yaml b/jjb/unimgr/unimgr.yaml index 3aaf535ac..a97332bfc 100644 --- a/jjb/unimgr/unimgr.yaml +++ b/jjb/unimgr/unimgr.yaml @@ -10,6 +10,7 @@ - 'unimgr-merge-{stream}' - 'unimgr-periodic-{stream}' - 'unimgr-distribution-{stream}' + - 'unimgr-distribution-check-{stream}' - 'unimgr-integration-{stream}' - 'unimgr-sonar' - 'unimgr-clm-{stream}' @@ -25,6 +26,7 @@ jdks: - openjdk8 disable_autorelease: False + disable_distribution_check: False - beryllium: branch: 'stable/beryllium' jdk: openjdk7 @@ -32,6 +34,7 @@ - openjdk7 - openjdk8 disable_autorelease: False + disable_distribution_check: False project: 'unimgr' @@ -75,9 +78,9 @@ parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' - - gerrit-refspec-parameter: refspec: 'refs/heads/{branch}' scm: @@ -98,25 +101,30 @@ branch: '{branch}' builders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' - maven-target: maven-version: '{mvn33}' pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}' + goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}' java-opts: - '-Xmx1024m -XX:MaxPermSize=256m' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp publishers: + - archive-artifacts: + artifacts: '**/target/surefire-reports/*-output.txt, ' - findbugs - email-notification: email-prefix: '[unimgr]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-merge-{stream}' @@ -135,17 +143,17 @@ jdk: '{jdk}' logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' + daysToKeep: '14' + numToKeep: '10' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' - - gerrit-refspec-parameter: refspec: 'refs/heads/{branch}' scm: @@ -167,19 +175,20 @@ branch: '{branch}' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}' + goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp post-step-run-condition: UNSTABLE postbuilders: @@ -198,19 +207,23 @@ - maven-target: maven-version: '{mvn33}' pom: pom.xml - goals: 'site:deploy -Dstream={stream}' + goals: 'site:deploy -V -B -Dstream={stream}' java-opts: - '-Xmx2g' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp - maven-target: maven-version: '{mvn33}' pom: deploy-site.xml - goals: 'site:deploy -Dstream={stream}' + goals: 'site:deploy -V -B -Dstream={stream}' java-opts: - '-Xmx2g' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -225,6 +238,8 @@ unique-version: true deploy-unstable: false - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-periodic-{stream}' @@ -244,8 +259,8 @@ jdk: '{jdk}' logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' + daysToKeep: '14' + numToKeep: '10' artifactDaysToKeep: '{build-artifact-days-to-keep}' artifactNumToKeep: '{build-artifact-num-to-keep}' @@ -269,19 +284,20 @@ - timed: '@daily' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins' + goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -290,6 +306,8 @@ - email-notification: email-prefix: '[unimgr]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-distribution-{stream}' @@ -330,18 +348,19 @@ result: 'success' prebuilders: - - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -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: '{integration-settings}' - global-settings: '{odl-global-settings}' + settings: 'integration-distribution-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp publishers: - email-notification: @@ -350,6 +369,117 @@ id: '' unique-version: true deploy-unstable: false + - archive-build: + maven-version: '{mvn33}' + +# Template: integration-patch-distribution-{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 + +- job-template: + name: 'unimgr-distribution-check-{stream}' + disabled: '{obj:disable_distribution_check}' + + project-type: maven + node: dynamic_verify + concurrent: true + jdk: '{jdk}' + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - gerrit-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + - project-parameter: + project: '{project}' + - integration-distribution-git-url + + 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}' + + triggers: + - gerrit: + server-name: 'OpenDaylight' + trigger-on: + - patchset-created-event: + exclude-drafts: 'true' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'true' + - draft-published-event + - comment-added-contains-event: + comment-contains-value: 'test-distribution' + - comment-added-contains-event: + comment-contains-value: 'reverify' + - comment-added-contains-event: + comment-contains-value: 'recheck' + projects: + - project-compare-type: 'ANT' + project-pattern: '{name}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + skip-vote: + successful: false + failed: false + unstable: false + notbuilt: false + + prebuilders: + - maven-target: + maven-version: '{mvn33}' + pom: '$GERRIT_PROJECT/pom.xml' + 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: 'unimgr-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 -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: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp + ignore-upstream-changes: true + post-step-run-condition: 'SUCCESS' + + postbuilders: + - integration-distribution-check + + publishers: + - archive: + artifacts: 'karaf.log' + - archive: + artifacts: 'karaf_console.log' + - email-notification: + email-prefix: '[unimgr]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-integration-{stream}' @@ -397,19 +527,20 @@ result: 'success' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins' + goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -418,6 +549,8 @@ - email-notification: email-prefix: '[unimgr] [odlparent] [yangtools] [controller] [ovsdb]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-sonar' @@ -450,24 +583,25 @@ - '{ssh-credentials}' triggers: - - timed: '@weekly' + - timed: 'H H * * 6' - gerrit-trigger-patch-sonar: name: 'unimgr' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar' + goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar' maven-opts: '-Xmx1024m -XX:MaxPermSize=256m' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -479,6 +613,8 @@ - email-notification: email-prefix: '[unimgr]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-clm-{stream}' @@ -511,21 +647,22 @@ - '{ssh-credentials}' triggers: - - timed: '@weekly' + - timed: 'H H * * 6' prebuilders: - - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{unimgr-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'unimgr-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' maven-opts: '-Xmx4096m -XX:MaxPermSize=512m' - settings: '{unimgr-settings}' - global-settings: '{odl-global-settings}' + settings: 'unimgr-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp postbuilders: - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' @@ -535,6 +672,8 @@ publishers: - email-notification: email-prefix: '[unimgr]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'unimgr-validate-autorelease-{stream}' @@ -554,24 +693,30 @@ parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' + refspec: 'refs/heads/{branch}' - autorelease-release-tag: release-tag: 'validate' - autorelease-release-branch: release-branch: '{branch}' - - autorelease-release-datestamp: - datestamp: true + - string: + name: CLONE_URL + default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease' + description: "Autorelease clone URL" scm: - git: - url: 'https://git.opendaylight.org/gerrit/releng/autorelease' + url: '$CLONE_URL' + credentials-id: '{ssh-credentials}' refspec: '' branches: - 'origin/{branch}' skip-tag: true submodule: recursive: true + timeout: 60 wrappers: - autorelease-build-timeout @@ -584,9 +729,9 @@ server-name: 'OpenDaylight' trigger-on: - patchset-created-event: - exclude-drafts: 'false' + exclude-drafts: 'true' exclude-trivial-rebase: 'false' - exclude-no-code-change: 'false' + exclude-no-code-change: 'true' - draft-published-event - comment-added-contains-event: comment-contains-value: 'recheck' @@ -600,39 +745,43 @@ branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' + file-paths: + - compare-type: ANT + pattern: '**/*.xml' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - autorelease-checkout-gerrit-patch - - autorelease-generate-taglist - autorelease-generate-release-patches - maven-target: maven-version: '{mvn33}' pom: validate-pom.xml - goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' java-opts: - '-Xmx8g' - settings: '{autorelease-settings}' - global-settings: '{odl-global-settings}' + settings: 'autorelease-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' + goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r' maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: '{autorelease-settings}' - global-settings: '{odl-global-settings}' + settings: 'autorelease-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp automatic-archiving: false post-step-run-condition: UNSTABLE postbuilders: - - shell: "./scripts/list-project-dependencies.sh" - autorelease-sys-stats publishers: - - archive-artifacts: - artifacts: '*.log' - email-notification: email-prefix: '[autorelease] [unimgr]' + - archive-build: + maven-version: '{mvn33}'