X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fcontroller%2Fcontroller.yaml;h=d6fb7f1d663a036cec36dc70e28248fc8362d801;hb=94c40ec8df717f5b1e64d52ec42f0ab5b7baca4a;hp=d453981c8d1f597d0d5808280e001ae0c3f0ae21;hpb=eee0a9a1a1ed3590af566a8c14d273c57634364b;p=releng%2Fbuilder.git diff --git a/jjb/controller/controller.yaml b/jjb/controller/controller.yaml index d453981c8..d6fb7f1d6 100644 --- a/jjb/controller/controller.yaml +++ b/jjb/controller/controller.yaml @@ -10,6 +10,7 @@ - 'controller-merge-{stream}' - 'controller-periodic-{stream}' - 'controller-distribution-{stream}' + - 'controller-distribution-check-{stream}' - 'controller-integration-{stream}' - 'controller-sonar' - 'controller-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 - stable-lithium: branch: 'stable/lithium' jdk: openjdk7 @@ -39,12 +42,7 @@ - openjdk7 - openjdk8 disable_autorelease: True - - stable-helium: - branch: 'stable/helium' - jdk: openjdk7 - jdks: - - openjdk7 - disable_autorelease: True + disable_distribution_check: True project: 'controller' @@ -88,9 +86,9 @@ parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' - - gerrit-refspec-parameter: refspec: 'refs/heads/{branch}' scm: @@ -114,18 +112,22 @@ - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-settings' - maven-target: maven-version: '{mvn33}' pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -Djenkins -Dstream={stream}' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins -Dstream={stream}' java-opts: - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-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: '[controller]' @@ -156,9 +158,9 @@ parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' - - gerrit-refspec-parameter: refspec: 'refs/heads/{branch}' scm: @@ -183,16 +185,18 @@ - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -Djenkins -Dmerge -Dstream={stream}' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins -Dmerge -Dstream={stream}' maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp post-step-run-condition: UNSTABLE postbuilders: @@ -211,19 +215,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: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-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: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -285,16 +293,18 @@ - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -Djenkins' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins' maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -345,16 +355,18 @@ prebuilders: - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-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: @@ -364,6 +376,114 @@ unique-version: true deploy-unstable: false +# 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: 'controller-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: + - wipe-org-opendaylight-repo + - 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: 'controller-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: 'controller-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: '[controller]' + - job-template: name: 'controller-integration-{stream}' disabled: false @@ -413,16 +533,18 @@ - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -Djenkins' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins' maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -463,7 +585,7 @@ - '{ssh-credentials}' triggers: - - timed: '@weekly' + - timed: 'H H * * 6' - gerrit-trigger-patch-sonar: name: 'controller' @@ -471,16 +593,18 @@ - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-settings' maven: maven-name: '{mvn33}' root-pom: 'pom.xml' - goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -Djenkins -Dsonar' + goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Pintegrationtests,docs -V -B -Djenkins -Dsonar' maven-opts: '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true' - settings: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -524,21 +648,23 @@ - '{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: '{controller-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'controller-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: '{controller-settings}' - global-settings: '{odl-global-settings}' + settings: 'controller-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp postbuilders: - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' @@ -567,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 @@ -597,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' @@ -613,39 +745,42 @@ 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] [controller]'