- # Job template for Java daily release jobs running checkstyle at the end
- # When checkstyle will be fully incorporated, it is meant to replace
- # '{project-name}-{stream}-release-java-daily'
- #
- # The purpose of this job template is to run:
- # 1. maven clean deploy with Sonar scans
- #
- # This job publishes checkstyle results.
- # This job uses a conditional regex match step to set versions.
- #
- # Required Variables:
- # branch: git branch (eg. stable/lithium or master)
-
- name: '{project-name}-{stream}-release-java-daily-checkstyle'
- project-type: freestyle
- node: '{build-node}'
- disabled: false
- maven-deploy-properties:
- properties:
- - infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
- parameters:
- - infra-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
- - maven-exec:
- maven-version: '{maven-version}'
- scm:
- - gerrit-trigger-scm:
- refspec: ''
- choosing-strategy: 'default'
- submodule-recursive: '{submodule-recursive}'
- wrappers:
- - infra-wrappers:
- build-timeout: '{build-timeout}'
- triggers:
- # 11 AM UTC
- - timed: '@daily'
- - gerrit-trigger-release-manually:
- server: '{server-name}'
- project: '{project}'
- branch: '{branch}'
- builders:
- - lf-infra-pre-build
- - provide-maven-settings:
- global-settings-file: 'global-settings'
- settings-file: '{mvn-settings}'
- - conditional-step:
- condition-kind: regex-match
- regex: DoSetVersion
- label: '{setVersion}'
- steps:
- - inject:
+ # Job template for Java daily release jobs running checkstyle at the end
+ # When checkstyle will be fully incorporated, it is meant to replace
+ # '{project-name}-{stream}-release-java-daily'
+ #
+ # The purpose of this job template is to run:
+ # 1. maven clean deploy with Sonar scans
+ #
+ # This job publishes checkstyle results.
+ # This job uses a conditional regex match step to set versions.
+ #
+ # Required Variables:
+ # branch: git branch (eg. stable/lithium or master)
+
+ name: "{project-name}-{stream}-release-java-daily-checkstyle"
+ project-type: freestyle
+ node: "{build-node}"
+ disabled: false
+ maven-deploy-properties:
+ properties:
+ - infra-properties:
+ build-days-to-keep: "{build-days-to-keep}"
+ parameters:
+ - infra-parameters:
+ project: "{project}"
+ branch: "{branch}"
+ refspec: "refs/heads/{branch}"
+ artifacts: "{archive-artifacts}"
+ - maven-exec:
+ maven-version: "{maven-version}"
+ scm:
+ - gerrit-trigger-scm:
+ refspec: ""
+ choosing-strategy: "default"
+ submodule-recursive: "{submodule-recursive}"
+ wrappers:
+ - infra-wrappers:
+ build-timeout: "{build-timeout}"
+ triggers:
+ # 11 AM UTC
+ - timed: "@daily"
+ - gerrit-trigger-release-manually:
+ server: "{server-name}"
+ project: "{project}"
+ branch: "{branch}"
+ builders:
+ - lf-infra-pre-build
+ - provide-maven-settings:
+ global-settings-file: "global-settings"
+ settings-file: "{mvn-settings}"
+ - conditional-step:
+ condition-kind: regex-match
+ regex: DoSetVersion
+ label: "{setVersion}"
+ steps:
+ - inject:
+ properties-file: version.properties
+ - maven-set-release-version:
+ maven-version: "{maven-version}"
+ mvn-settings: "{mvn-settings}"
+ pom:
+ - maven-target:
+ maven-version: "{maven-version}"
+ goals: "clean deploy -B
+ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
+ properties: "{obj:mvn_properties}"
+ settings: "{mvn-settings}"
+ settings-type: cfp
+ global-settings: "global-settings"
+ global-settings-type: cfp
+
+ publishers:
+ - lf-infra-publish
+ - checkstyle-result-daily
+
+- job-template:
+ # Job template for Java daily release jobs
+ #
+ # The purpose of this job template is to run:
+ # 1. maven set versions
+ # 2. maven clean deploy with Sonar scans
+ #
+ # Required Variables:
+ # branch: git branch (eg. stable/lithium or master)
+
+ name: "{project-name}-{stream}-release-version-java-daily"
+
+ project-type: freestyle
+ disabled: false
+ node: "{build-node}"
+ maven-deploy-properties:
+ properties:
+ - infra-properties:
+ build-days-to-keep: "{build-days-to-keep}"
+
+ parameters:
+ - infra-parameters:
+ project: "{project}"
+ branch: "{branch}"
+ refspec: "refs/heads/{branch}"
+ artifacts: "{archive-artifacts}"
+ - maven-exec:
+ maven-version: "{maven-version}"
+
+ scm:
+ - gerrit-trigger-scm:
+ refspec: ""
+ choosing-strategy: "default"
+ submodule-recursive: "{submodule-recursive}"
+
+ wrappers:
+ - infra-wrappers:
+ build-timeout: "{build-timeout}"
+
+ triggers:
+ # 11 AM UTC
+ - timed: "@daily"
+ - gerrit-trigger-release-manually:
+ server: "{server-name}"
+ project: "{project}"
+ branch: "{branch}"
+
+ builders:
+ - lf-infra-pre-build
+ - provide-maven-settings:
+ global-settings-file: "global-settings"
+ settings-file: "{mvn-settings}"
+
+ - inject: