X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fofextensions%2Fcircuitsw%2Fcircuitsw.yaml;h=ed18776cd13db2728448067bb28d3aa62d96cc9b;hb=refs%2Fchanges%2F24%2F41424%2F3;hp=4949042abf197866c17bf9aade1d9b0d605c4b5f;hpb=c8e2080ff26c282ebba21fe4beb6a44df96ca5bd;p=releng%2Fbuilder.git diff --git a/jjb/ofextensions/circuitsw/circuitsw.yaml b/jjb/ofextensions/circuitsw/circuitsw.yaml index 4949042ab..ed18776cd 100644 --- a/jjb/ofextensions/circuitsw/circuitsw.yaml +++ b/jjb/ofextensions/circuitsw/circuitsw.yaml @@ -70,10 +70,7 @@ 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: @@ -85,15 +82,12 @@ 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: @@ -101,19 +95,20 @@ branch: '{branch}' builders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp publishers: - archive-artifacts: @@ -122,6 +117,8 @@ - email-notification: email-prefix: '[circuitsw]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'circuitsw-merge-{stream}' @@ -155,15 +152,12 @@ 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' @@ -172,19 +166,20 @@ branch: '{branch}' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp post-step-run-condition: UNSTABLE postbuilders: @@ -203,19 +198,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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -230,6 +229,8 @@ unique-version: true deploy-unstable: false - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'circuitsw-periodic-{stream}' @@ -260,33 +261,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: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -295,6 +294,8 @@ - email-notification: email-prefix: '[circuitsw]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'circuitsw-distribution-{stream}' @@ -319,15 +320,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: @@ -335,18 +333,19 @@ result: 'success' prebuilders: - - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: @@ -355,6 +354,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 @@ -371,8 +372,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}' @@ -387,19 +388,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: @@ -429,23 +426,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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp ignore-upstream-changes: true post-step-run-condition: 'SUCCESS' @@ -453,12 +453,19 @@ - integration-distribution-check publishers: - - archive: - artifacts: 'karaf.log' - - archive: - artifacts: 'karaf_console.log' - email-notification: email-prefix: '[circuitsw]' + - 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: 'circuitsw-integration-{stream}' @@ -490,15 +497,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: @@ -506,19 +510,20 @@ result: 'success' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -527,6 +532,8 @@ - email-notification: email-prefix: '[circuitsw] [odlparent] [yangtools] [controller] [openflowplugin]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'circuitsw-sonar' @@ -548,15 +555,12 @@ 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: 'H H * * 6' @@ -564,19 +568,20 @@ name: 'ofextensions/circuitsw' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp reporters: - findbugs @@ -588,6 +593,8 @@ - email-notification: email-prefix: '[circuitsw]' - jacoco-report + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'circuitsw-clm-{stream}' @@ -609,32 +616,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: 'H H * * 6' prebuilders: - - wipe-org-opendaylight-repo - provide-maven-settings: - global-settings-file: '{odl-global-settings}' - settings-file: '{ofextensions-circuitsw-settings}' + global-settings-file: 'odl-global-settings' + settings-file: 'ofextensions-circuitsw-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: '{ofextensions-circuitsw-settings}' - global-settings: '{odl-global-settings}' + settings: 'ofextensions-circuitsw-settings' + settings-type: cfp + global-settings: 'odl-global-settings' + global-settings-type: cfp postbuilders: - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' @@ -644,6 +649,8 @@ publishers: - email-notification: email-prefix: '[circuitsw]' + - archive-build: + maven-version: '{mvn33}' - job-template: name: 'circuitsw-validate-autorelease-{stream}' @@ -671,8 +678,6 @@ 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' @@ -681,28 +686,27 @@ scm: - git: url: '$CLONE_URL' + credentials-id: 'opendaylight-jenkins-ssh' refspec: '' branches: - 'origin/{branch}' skip-tag: true submodule: recursive: true - timeout: 15 + 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' @@ -721,26 +725,29 @@ pattern: '**/*.xml' prebuilders: - - wipe-org-opendaylight-repo - jacoco-nojava-workaround - autorelease-checkout-gerrit-patch - autorelease-generate-release-patches - maven-target: maven-version: '{mvn33}' pom: validate-pom.xml - goals: 'clean install -B -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 -B -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 @@ -750,4 +757,6 @@ publishers: - email-notification: email-prefix: '[autorelease] [circuitsw]' + - archive-build: + maven-version: '{mvn33}'