diff options
author | 2017-09-25 15:56:34 +0200 | |
---|---|---|
committer | 2017-09-27 16:57:59 +0200 | |
commit | d91a33ad3e3b07c456a2602ea824b69e2f1b3554 (patch) | |
tree | eb9f269bf8dbe30b50ffe57e020608228d62587a /jjb/global-templates-java.yaml | |
parent | c38ef8c27b169bceb2175f76b92ce14611280bbb (diff) |
Add step for version to release-checkstyle
Add an optional step to use maven version plugin
Change-Id: Ia174dc86fff30bd814fc4a083eda08e75bfa5378
Issue-ID: CLAMP-57
Signed-off-by: JulienBe <jb379x@att.com>
Diffstat (limited to 'jjb/global-templates-java.yaml')
-rw-r--r-- | jjb/global-templates-java.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 5e69145a0..adfd3717d 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -477,6 +477,22 @@ - 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-target: + maven-version: '{maven-version}' + goals: 'versions:set versions:update-child-modules versions:commit -B' + properties: + - 'newVersion=${{release_version}}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp - maven-target: maven-version: '{maven-version}' goals: 'clean deploy sonar:sonar -Dsonar.host.url=${{SONAR}} -B |