---
# Autorelease build jobs
+- job-template:
+ name: autorelease-branch-cut
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ project-type: freestyle
+ node: centos7-builder-2c-2g
+
+ properties:
+ - opendaylight-infra-properties:
+ build-days-to-keep: 7
+
+ parameters:
+ - lf-infra-parameters:
+ project: releng/autorelease
+ branch: master
+ stream: master
+ lftools-version: '{lftools-version}'
+ - string:
+ name: RELEASE
+ description: |
+ Release name to branch cut.
+ Eg. Lithium, Beryllium, Boron, Carbon...
+ - bool:
+ name: DRY_RUN
+ default: true
+ description: |
+ If DRY_RUN is enabled modifications are not published to Gerrit.
+
+ scm:
+ - lf-infra-gerrit-scm:
+ git-url: '$GIT_URL/$GERRIT_PROJECT'
+ branch: master
+ refspec: 'refs/heads/master'
+ 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
+
+ builders:
+ - shell: !include-raw-escape: branch-cut.sh
+
+ publishers:
+ - lf-infra-publish
+
- job-template:
name: 'autorelease-release-{stream}'
$EXTRA_MVN_OPTS
-Pintegrationtests,docs,repoBuild
-Dcheckstyle.skip=true
+ -Dkaraf.keep.unpack=true
-DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
{opendaylight-infra-mvn-opts}
java-opts:
- shell: |
mkdir -p archives/
cp *.log *.prop $_
+ for file in $(find . -name karaf.log); do
+ module="${{file%%/target/*}}"
+ module="${{module##*/}}"
+ cp "$file" "archives/${{module}}-karaf.log"
+ done
publishers:
- opendaylight-infra-notify-status
- job-template:
name: autorelease-version-bump-{stream}
project-type: freestyle
- node: centos7-builder-4c-16g
+ node: '{build-node}'
properties:
- opendaylight-infra-properties:
description: |
Release that is being version bumped.
Eg. Lithium, Beryllium, Boron, Carbon, Carbon-SR1, Carbon-SR2...
+ - bool:
+ name: BRANCH_CUT
+ default: false
+ description: |
+ If BRANCH_CUT is enabled, perform version bump for branch cutting
+ workflow, else perform version bump for simultaneous release
+ workflow (detault).
- bool:
name: DRY_RUN
default: true
description: |
- If DRY_RUN is enabled modifications are not published to Gerrit.
+ If DRY_RUN is enabled modifications are not published to Gerrit
+ and artifacts are not pushed to Nexus. Instead the build will be
+ performed using the goals "clean install".
- maven-exec:
maven-version: mvn33
disabled: false
project-type: freestyle
+ # Note: This NEEDS to be hardcoded as projects should NOT be allowed to
+ # override the build node.
node: centos7-builder-2c-8g
concurrent: true
jdk: '{java-version}'
builders:
- autorelease-checkout-gerrit-patch
+ - autorelease-compare-projects
- jacoco-nojava-workaround
- shell: "./scripts/list-project-dependencies.sh"
- autorelease-determine-merge-order
global-settings: global-settings
global-settings-type: cfp
# Hack to workaround the duplicate-finder plugin in odlparent breaking validate-autorelease
- - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom
+ - shell: sed -i 's/validate/none/' /tmp/r/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom || true
- maven-target:
maven-version: mvn33
pom: pom.xml
goals: |
clean validate
-Pq
+ -Dkaraf.keep.unpack=true
{opendaylight-infra-mvn-opts}
java-opts:
- '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
- shell: |
mkdir -p archives/
cp *.log $_
+ for file in $(find . -name karaf.log); do
+ module="${{file%%/target/*}}"
+ module="${{module##*/}}"
+ cp "$file" "archives/${{module}}-karaf.log"
+ done
publishers:
- email-notification: