# Autorelease build jobs
- job-template:
- name: 'autorelease-daily-{stream}'
+ name: 'autorelease-release-{stream}'
project-type: maven
node: dynamic_autorelease
- project-parameter:
project: '{project}'
- autorelease-release-tag:
- release-tag: 'Daily'
+ release-tag: '{stream}-daily'
- autorelease-release-branch:
release-branch: '{branch}'
- autorelease-release-datestamp:
prebuilders:
- wipe-org-opendaylight-repo
- jacoco-nojava-workaround
+ - autorelease-cfp:
+ autorelease-settings: '{autorelease-settings}'
+ odl-global-settings: '{odl-global-settings}'
- autorelease-generate-taglist
- autorelease-generate-release-patches
maven:
maven-name: '{mvn33}'
root-pom: 'pom.xml'
- goals: 'clean install -Pintegrationtests,docs,repoBuild -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
+ goals: 'clean install -Pintegrationtests,docs,repoBuild -Djenkins -Dcheckstyle.skip=true -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}'
- automatic-archiving: false
+ automatic-archiving: true
post-step-run-condition: UNSTABLE
postbuilders:
+ - autorelease-maven-deploy
- shell: "./scripts/list-project-dependencies.sh"
+ - autorelease-get-integration-test-variables
- autorelease-maven-sources:
maven-version: '{mvn33}'
settings: '{autorelease-settings}'
- autorelease-sys-stats
publishers:
- - archive-artifacts:
- artifacts: '*.log,patches/*.patch'
- - email-notification:
- email-prefix: '[autorelease]'
-
+ - archive-artifacts:
+ artifacts: '*.prop,*.log,patches/*.patch,patches/*.log'
+ - email-notification:
+ email-prefix: '[autorelease]'
+ - trigger-parameterized-builds:
+ - project: 'integration-distribution-test-{integration-test}'
+ condition: UNSTABLE_OR_BETTER
+ property-file: variables.prop
+ fail-on-missing: true
- job-template:
- name: 'autorelease-release-{stream}'
+ name: 'autorelease-project-report-{stream}'
- project-type: maven
- node: dynamic_autorelease
- jdk: '{jdk}'
+ project-type: freestyle
+ node: dynamic_verify
logrotate:
daysToKeep: '{build-days-to-keep}'
parameters:
- project-parameter:
project: '{project}'
- - autorelease-release-tag:
- release-tag: 'Test-{stream}'
- - autorelease-release-branch:
- release-branch: '{branch}'
- - autorelease-release-datestamp:
- datestamp: false
+ - string:
+ name: REPORT_DIR
+ default: '$WORKSPACE/project-reports'
+ description: "The directory containing project reports"
scm:
- git:
recursive: true
wrappers:
- - autorelease-build-timeout
+ - timeout:
+ type: absolute
+ timeout: 30
+ fail: true
- ssh-agent-credentials:
users:
- '{ssh-credentials}'
- prebuilders:
- - wipe-org-opendaylight-repo
- - jacoco-nojava-workaround
- - autorelease-generate-taglist
- - autorelease-generate-release-patches
-
- maven:
- maven-name: '{mvn33}'
- root-pom: 'pom.xml'
- goals: 'clean install -Pintegrationtests,docs,repoBuild -Dcheckstyle.skip=true -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}'
- automatic-archiving: true
- post-step-run-condition: UNSTABLE
+ triggers:
+ - timed: '0 0 * * 0'
- postbuilders:
- - autorelease-cfp:
- autorelease-settings: '{autorelease-settings}'
- odl-global-settings: '{odl-global-settings}'
- - autorelease-maven-deploy
+ builders:
+ - shell: 'echo "DATE=`date +%Y-%m-%d`" > $WORKSPACE/variables.prop'
+ - inject:
+ properties-file: variables.prop
+ - autorelease-generate-project-report
- shell: "./scripts/list-project-dependencies.sh"
- - autorelease-get-integration-test-variables
- - autorelease-maven-sources:
- maven-version: '{mvn33}'
- settings: '{autorelease-settings}'
- global-settings: '{odl-global-settings}'
- - autorelease-maven-sources-post-process
- autorelease-sys-stats
publishers:
- archive-artifacts:
- artifacts: '*.prop,*.log,patches/*.patch'
- - email-notification:
- email-prefix: '[autorelease]'
- - trigger-parameterized-builds:
- - project: 'integration-distribution-test-{integration-test}'
- condition: UNSTABLE_OR_BETTER
- property-file: variables.prop
- fail-on-missing: true
+ artifacts: '*.log,project-reports/*.log'
+ - email-ext:
+ attachments: 'project-reports/*.log'
+ recipients: 'skitt@redhat.com thanh.ha@linuxfoundation.org'
+ reply-to: dev@lists.opendaylight.org
+ content-type: default
+ subject: '[releng] ODL {stream} project report for ${{ENV, var="DATE"}}'
+ body: |
+ This is a project report generated on $DATE listing the commit
+ history of ODL projects for the past week. See attached
+ git-report.log
+
+ Archive also available on Jenkins at $BUILD_URL
+ always: true
###
### Maven Sites
- '{ssh-credentials}'
triggers:
- - gerrit-trigger-patch-site-merged:
+ - autorelease-trigger-patch-site-merged:
name: '{project}'
branch: '{branch}'
maven:
maven-name: '{mvn33}'
- root-pom: 'pom.xml'
+ root-pom: 'site.xml'
goals: 'site:site site:deploy -Dstream={stream}'
maven-opts: '-Xmx1024m'
- settings: '{releng-builder-settings}'
+ settings: '{autorelease-settings}'
global-settings: '{odl-global-settings}'
publishers:
- '{ssh-credentials}'
triggers:
- - gerrit-trigger-patch-submitted:
+ - autorelease-trigger-patch-site-submitted:
name: '{project}'
branch: '{branch}'
maven:
maven-name: '{mvn33}'
- root-pom: 'pom.xml'
+ root-pom: 'site.xml'
goals: 'site:site -Dstream={stream}'
maven-opts: '-Xmx1024m'
settings: '{autorelease-settings}'