X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fautorelease%2Fautorelease-templates.yaml;h=7f1d6b76ca33e9c0aa1ad51863c7a6f2bfa28727;hb=fa32effdc9dc4e7e8fa175e4ecd902ee2d3fb573;hp=1e2d67555f2cccd40ebbf40c3ebe28c1ce4e9f8d;hpb=f0853416a3ec7e740db277d55198ad3aa7fde8fd;p=releng%2Fbuilder.git diff --git a/jjb/autorelease/autorelease-templates.yaml b/jjb/autorelease/autorelease-templates.yaml index 1e2d67555..7f1d6b76c 100644 --- a/jjb/autorelease/autorelease-templates.yaml +++ b/jjb/autorelease/autorelease-templates.yaml @@ -1,17 +1,77 @@ --- # Autorelease build jobs - job-template: - name: 'autorelease-release-{stream}' + name: autorelease-branch-cut + + ##################### + # Job Configuration # + ##################### project-type: freestyle - node: centos7-autorelease-4c-16g - jdk: '{jdk}' - cron: 'H 0 * * *' + 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 - # Default variable values +- job-template: + name: 'autorelease-release-{stream}' + + ###################### + # Default parameters # + ###################### + + build-node: '{build-node}' + cron: 'H 0 * * *' + java-version: openjdk8 mvn-version: mvn33 extra-mvn-opts: '' + ##################### + # Job Configuration # + ##################### + + project-type: freestyle + node: '{build-node}' + jdk: '{java-version}' + properties: - lf-infra-properties: build-days-to-keep: 30 @@ -144,8 +204,19 @@ - job-template: name: autorelease-update-validate-jobs-{stream} + + ###################### + # Default parameters # + ###################### + + cron: '@weekly' + + ##################### + # Job configuration # + ##################### + project-type: freestyle - node: centos7-java-builder-2c-4g + node: centos7-builder-2c-1g properties: - lf-infra-properties: @@ -168,6 +239,7 @@ choosing-strategy: default triggers: + - timed: '{cron}' - gerrit: server-name: '{gerrit-server-name}' trigger-on: @@ -190,8 +262,7 @@ jenkins-ssh-credential: opendaylight-jenkins-ssh builders: - - shell: !include-raw-escape: - - update-validate-autorelease-projects.sh + - autorelease-update-validate-projects - opendaylight-infra-push-gerrit-patch: project: 'releng/builder' gerrit-topic: 'autorelease-update-validate-jobs-{stream}' @@ -204,7 +275,7 @@ - job-template: name: autorelease-version-bump-{stream} project-type: freestyle - node: centos7-autorelease-4c-16g + node: '{build-node}' properties: - opendaylight-infra-properties: @@ -223,11 +294,20 @@ 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 @@ -278,7 +358,7 @@ ##################### project-type: freestyle - node: centos7-java-builder-2c-4g + node: centos7-builder-2c-8g properties: - lf-infra-properties: @@ -327,12 +407,24 @@ - job-template: name: '{project-name}-validate-autorelease-{stream}' - disabled: false + ############ + # Defaults # + ############ + + java-version: openjdk8 + + ##################### + # Job Configuration # + ##################### + + disabled: false project-type: freestyle - node: '{build-node}' + # 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: openjdk8 + jdk: '{java-version}' properties: - lf-infra-properties: @@ -369,14 +461,17 @@ triggers: - gerrit-trigger-patch-submitted: - server: '{server-name}' + gerrit-server-name: '{gerrit-server-name}' project: '{project}' branch: '{branch}' files: '**/*.xml' builders: - autorelease-checkout-gerrit-patch + - autorelease-compare-projects - jacoco-nojava-workaround + - shell: "./scripts/list-project-dependencies.sh" + - autorelease-determine-merge-order - autorelease-generate-release-patches # In a perfect world projects should be releasing separately and we consume them # via a project that pulls the release bits from each project from Nexus. @@ -397,6 +492,8 @@ settings-type: cfp 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 || true - maven-target: maven-version: mvn33 pom: pom.xml @@ -410,6 +507,9 @@ settings-type: cfp global-settings: global-settings global-settings-type: cfp + - shell: | + mkdir -p archives/ + cp *.log $_ publishers: - email-notification: