summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jjb/aaf/aaf-authz-docker.yaml1
-rw-r--r--jjb/clamp/clamp.yaml1
-rw-r--r--jjb/global-templates-java.yaml16
3 files changed, 18 insertions, 0 deletions
diff --git a/jjb/aaf/aaf-authz-docker.yaml b/jjb/aaf/aaf-authz-docker.yaml
index 332885697..754fbddd3 100644
--- a/jjb/aaf/aaf-authz-docker.yaml
+++ b/jjb/aaf/aaf-authz-docker.yaml
@@ -18,6 +18,7 @@
- skipDockerTag=true
- skipDockerPush=true
- '{project-name}-{stream}-docker-java-properties-daily':
+ setVersion: 'DontSetVersion'
docker-pom: 'authz-service/pom.xml'
mvn-profile: 'docker'
maven-properties: |
diff --git a/jjb/clamp/clamp.yaml b/jjb/clamp/clamp.yaml
index da9bc2548..746caa0ea 100644
--- a/jjb/clamp/clamp.yaml
+++ b/jjb/clamp/clamp.yaml
@@ -16,6 +16,7 @@
- skipDockerTag=true
- skipDockerPush=true
- '{project-name}-{stream}-docker-java-properties-daily':
+ setVersion: 'DoSetVersion'
docker-pom: 'pom.xml'
mvn-profile: 'docker'
maven-properties: |
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index be02418eb..e31a470df 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -1458,6 +1458,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
- docker-login
- maven-docker-push-daily:
maven-version: '{maven-version}'