From: Anil Belur Date: Wed, 28 Feb 2018 01:33:14 +0000 (+0000) Subject: Merge "Improve DRY_RUN mode to perform a build" X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=2cebce4cb7d453c1509dedb3f9cc54e971506693;hp=-c;p=releng%2Fbuilder.git Merge "Improve DRY_RUN mode to perform a build" --- 2cebce4cb7d453c1509dedb3f9cc54e971506693 diff --combined jjb/autorelease/autorelease-templates.yaml index 495787e1f,e8d332d81..58a2336fa --- a/jjb/autorelease/autorelease-templates.yaml +++ b/jjb/autorelease/autorelease-templates.yaml @@@ -1,56 -1,5 +1,56 @@@ --- # 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}' @@@ -286,7 -235,9 +286,9 @@@ 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