jdk: '{jdk}'
cron: 'H 0 * * *'
+ # Default variable values
+ extra-mvn-opts: ''
+
properties:
- - build-discarder:
- days-to-keep: '30'
- num-to-keep: 40
- artifact-num-to-keep: 1
- # Make sure we only archive the last artifact until we figure out why
- # autorelease carbon is not generating a staging repo.
- # - opendaylight-infra-properties:
- # build-days-to-keep: '30'
+ - opendaylight-infra-properties:
+ build-days-to-keep: '30'
parameters:
- maven-exec:
release-tag: '{next-release-tag}'
- autorelease-release-branch:
release-branch: '{branch}'
+ - string:
+ name: EXTRA_MVN_OPTS
+ default: '{extra-mvn-opts}'
+ description: |
+ Additional optional Maven Options to pass to the Maven Goals
+ parameter.
+
+ Examples:
+ -Dskip.karaf.featureTest=true # To disable karaf SingleFeatureTests
+ --fail-never # NEVER fail the build, regardless of project result
+ --fail-at-end # Only fail the build afterwards; allow all non-impacted builds to continue
scm:
- git:
wrappers:
- opendaylight-infra-wrappers:
- build-timeout: '1440'
+ build-timeout: '900'
triggers:
- timed: '{cron}'
goals: '-version'
settings: 'autorelease-settings'
settings-type: cfp
- global-settings: 'odl-global-settings'
+ global-settings: 'global-settings'
global-settings-type: cfp
- wipe-local-maven-repo
- jacoco-nojava-workaround
- autorelease-determine-merge-order
- autorelease-cfp:
autorelease-settings: 'autorelease-settings'
- odl-global-settings: 'odl-global-settings'
+ global-settings: 'odl-global-settings'
- autorelease-generate-taglist
- autorelease-distribute-taglist
- distribute-build-url:
pom: 'pom.xml'
goals: |
clean deploy
+ $EXTRA_MVN_OPTS
-Pintegrationtests,docs,repoBuild
-Dcheckstyle.skip=true
-DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
- '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
settings: 'autorelease-settings'
settings-type: cfp
- global-settings: 'odl-global-settings'
+ global-settings: 'global-settings'
global-settings-type: cfp
- autorelease-maven-deploy
- autorelease-get-integration-test-variables
opendaylight-infra-mvn-opts: '{opendaylight-infra-mvn-opts}'
maven-version: 'mvn33'
settings: 'autorelease-settings'
- global-settings: 'odl-global-settings'
+ global-settings: 'global-settings'
- autorelease-maven-sources-post-process
- shell: |
mkdir -p archives/
publishers:
- opendaylight-infra-notify-status
- - opendaylight-infra-sysstats
- - archive:
- # Need to archive dependencies.log in Jenkins to provide a simple
- # way for downstream jobs to pull the latest version of this file
- # in their builds.
- # TODO stop archiving **/*.zip once we figure out why artifacts are
- # not deploying to Nexus
- artifacts: 'dependencies.log, **/*.zip, /var/log/sa/*'
- trigger-parameterized-builds:
- project: 'autorelease-generate-release-notes-{stream}'
condition: UNSTABLE_OR_BETTER
fail-on-missing: true
- project: 'integration-distribution-test-{integration-test}'
condition: FAILED
+ trigger-with-no-params: true
- project: 'integration-sanity-test-{integration-test}'
condition: UNSTABLE_OR_BETTER
property-file: variables.jenkins-trigger
fail-on-missing: true
- project: 'integration-sanity-test-{integration-test}'
condition: FAILED
+ trigger-with-no-params: true
- project: 'packaging-build-rpm-master'
condition: UNSTABLE_OR_BETTER
predefined-parameters: DOWNLOAD_URL=$BUNDLE_URL
property-file: variables.jenkins-trigger
fail-on-missing: true
- - opendaylight-infra-shiplogs:
- maven-version: 'mvn33'
-
+ - lf-infra-publish
- job-template:
- name: 'autorelease-generate-release-notes-{stream}'
-
+ name: autorelease-version-bump-{stream}
project-type: freestyle
- node: centos7-java-builder-2c-8g
+ node: centos7-autorelease-4c-16g
properties:
- opendaylight-infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
+ build-days-to-keep: 7
parameters:
- - opendaylight-infra-parameters:
- os-cloud: '{os-cloud}'
- project: '{project}'
+ - lf-infra-parameters:
+ project: releng/autorelease
branch: '{branch}'
refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
+ - string:
+ name: RELEASE_TAG
+ default: '{next-release-tag}'
+ description: |
+ Release that is being version bumped.
+ Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
+ - bool:
+ name: DRY_RUN
+ default: true
+ description: |
+ If DRY_RUN is enabled modifications are not published to Gerrit.
+ - maven-exec:
+ maven-version: mvn33
scm:
- - git:
- credentials-id: 'opendaylight-jenkins-ssh'
- url: '$GIT_BASE'
- refspec: '$GERRIT_REFSPEC'
- branches:
- - '$GERRIT_BRANCH'
- choosing-strategy: 'gerrit'
- skip-tag: true
- submodule:
- recursive: true
+ - lf-infra-gerrit-scm:
+ git-url: '$GIT_URL/$GERRIT_PROJECT'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ jenkins-ssh-credential: opendaylight-jenkins-ssh
+ submodule-recursive: true
+ choosing-strategy: default
wrappers:
- - opendaylight-infra-wrappers:
- build-timeout: '30'
-
- triggers:
- - timed: '0 0 * * 0'
+ - lf-infra-wrappers:
+ build-timeout: 240
+ jenkins-ssh-credential: opendaylight-jenkins-ssh
builders:
# force jenkins install of maven version before any shell scripts use it
- maven-target:
- maven-version: 'mvn33'
+ maven-version: mvn33
goals: '-version'
- settings: 'autorelease-settings'
+ settings: autorelease-settings
settings-type: cfp
- global-settings: 'odl-global-settings'
+ global-settings: global-settings
global-settings-type: cfp
+ - autorelease-cfp
+ - shell: !include-raw-escape:
+ - ../global-jjb/shell/lftools-install.sh
+ - version-bump.sh
+
+ publishers:
+ - lf-infra-publish
+
+- job-template:
+ name: 'autorelease-generate-release-notes-{stream}'
+
+ project-type: freestyle
+ node: centos7-java-builder-2c-4g
+
+ properties:
+ - lf-infra-properties:
+ build-days-to-keep: 7
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+
+ scm:
+ - lf-infra-gerrit-scm:
+ git-url: '$GIT_URL/$GERRIT_PROJECT'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ jenkins-ssh-credential: opendaylight-jenkins-ssh
+ submodule-recursive: true
+ choosing-strategy: default
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: 10
+ jenkins-ssh-credential: opendaylight-jenkins-ssh
+
+ triggers:
+ - timed: '0 0 * * 0'
+
+ builders:
+ - lf-maven-install:
+ mvn-version: mvn33
- maven-target:
- maven-version: 'mvn33'
+ maven-version: mvn33
pom: '$WORKSPACE/scripts/release_notes_management/pom.xml'
goals: |
clean package
- -Dcheckstyle.skip=true
- -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
{opendaylight-infra-mvn-opts}
- java-opts:
- - '-Xmx10g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
- settings: 'autorelease-settings'
+ settings: autorelease-settings
settings-type: cfp
- global-settings: 'odl-global-settings'
+ global-settings: global-settings
global-settings-type: cfp
- autorelease-generate-release-notes
publishers:
- - opendaylight-infra-sysstats
- - archive:
- artifacts: 'scripts/release_notes_management/projects/release-notes.rst, /var/log/sa/*'
- - opendaylight-infra-shiplogs:
- maven-version: 'mvn33'
+ - lf-infra-publish