X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fiotdm%2Fiotdm.yaml;h=78e973012eb349226b848a7eb60623831efcb63c;hb=d59d69c5919ae54c2abe09b1fcd43c1587c0d27e;hp=090d48ac0db8fb6407f176f10dd5cee12efc01e8;hpb=46a6e3714a42994591c5287e2240d823f7f9d039;p=releng%2Fbuilder.git diff --git a/jjb/iotdm/iotdm.yaml b/jjb/iotdm/iotdm.yaml index 090d48ac0..78e973012 100644 --- a/jjb/iotdm/iotdm.yaml +++ b/jjb/iotdm/iotdm.yaml @@ -78,30 +78,24 @@ values: '{obj:jdks}' logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' - artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + daysToKeep: '14' parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' - - gerrit-refspec-parameter: refspec: 'refs/heads/{branch}' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '$GERRIT_REFSPEC' choosing-strategy: 'gerrit' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit-trigger-patch-submitted: @@ -109,25 +103,30 @@ branch: '{branch}' builders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-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: '[iotdm]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'iotdm-merge-{stream}' @@ -154,22 +153,19 @@ parameters: - project-parameter: project: '{project}' - - gerrit-parameter: + - gerrit-parameters: + project: '{project}' branch: '{branch}' - - gerrit-refspec-parameter: refspec: 'refs/heads/{branch}' scm: - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' refspec: '' choosing-strategy: 'default' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - timed: 'H H * * 0' @@ -178,19 +174,20 @@ branch: '{branch}' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp post-step-run-condition: UNSTABLE postbuilders: @@ -209,19 +206,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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -236,6 +237,8 @@ unique-version: true deploy-unstable: false - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'iotdm-periodic-{stream}' @@ -266,33 +269,31 @@ scm: - git-scm: - credentials-id: '{ssh-credentials}' refspec: '' branch: '{branch}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - timed: '@daily' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -301,6 +302,8 @@ - email-notification: email-prefix: '[iotdm]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'iotdm-distribution-{stream}' @@ -325,15 +328,12 @@ scm: - git-scm: - credentials-id: '{ssh-credentials}' refspec: '' branch: '{branch}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - reverse: @@ -341,18 +341,19 @@ result: 'success' prebuilders: - - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: @@ -361,6 +362,8 @@ 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 @@ -377,35 +380,31 @@ 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}' parameters: - - gerrit-project-parameter: + - gerrit-parameters: project: '{project}' - - gerrit-refspec-parameter: - refspec: '{branch}' + 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}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit: @@ -418,6 +417,10 @@ - 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}' @@ -425,45 +428,52 @@ - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' skip-vote: - successful: true - failed: true - unstable: true - notbuilt: true + successful: false + failed: false + unstable: false + notbuilt: false prebuilders: - - integration-get-bundle-url - - inject: - properties-file: 'bundle.txt' - - wipe-org-opendaylight-repo - maven-target: maven-version: '{mvn33}' pom: '$GERRIT_PROJECT/pom.xml' - goals: 'clean install -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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-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 -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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp ignore-upstream-changes: true post-step-run-condition: 'SUCCESS' postbuilders: - - trigger-builds: - - project: 'integration-distribution-deploy-{stream}' - block: true - predefined-parameters: - BUNDLEURL=$BUNDLEURL + - integration-distribution-check publishers: - email-notification: email-prefix: '[iotdm]' + - 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}' - job-template: name: 'iotdm-integration-{stream}' @@ -495,15 +505,12 @@ scm: - git-scm: - credentials-id: '{ssh-credentials}' refspec: '' branch: '{branch}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - reverse: @@ -511,19 +518,20 @@ result: 'success' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -532,6 +540,8 @@ - email-notification: email-prefix: '[iotdm] [controller] [yangtools] [odlparent] [aaa]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'iotdm-sonar' @@ -553,35 +563,33 @@ scm: - git-scm: - credentials-id: '{ssh-credentials}' refspec: '' branch: 'master' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - - timed: '@weekly' + - timed: 'H H * * 6' - gerrit-trigger-patch-sonar: name: 'iotdm' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -593,6 +601,8 @@ - email-notification: email-prefix: '[iotdm]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'iotdm-clm-{stream}' @@ -614,32 +624,30 @@ scm: - git-scm: - credentials-id: '{ssh-credentials}' refspec: '' branch: '{branch}' wrappers: - - build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - - timed: '@weekly' + - timed: 'H H * * 6' prebuilders: - - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{iotdm-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'iotdm-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: '{iotdm-settings}' - global-settings: '{odl-global-settings}' + settings: 'iotdm-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp postbuilders: - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' @@ -649,6 +657,8 @@ publishers: - email-notification: email-prefix: '[iotdm]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'iotdm-validate-autorelease-{stream}' @@ -668,39 +678,43 @@ 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: 'opendaylight-jenkins-ssh' refspec: '' branches: - 'origin/{branch}' skip-tag: true submodule: recursive: true + timeout: 60 wrappers: - - autorelease-build-timeout - - ssh-agent-credentials: - users: - - '{ssh-credentials}' + - opendaylight-infra-wrappers: + build-timeout: '{build-timeout}' triggers: - gerrit: 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' @@ -714,39 +728,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] [iotdm]' + - archive-build: + maven-version: '{mvn33}'