summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brady <pb071s@att.com>2017-11-27 15:17:55 -0800
committerPatrick Brady <pb071s@att.com>2017-11-28 10:20:39 -0800
commit2445f8e946a9618c947d7e3b82f8b064b5d12f9e (patch)
tree2d44e6f88c2977f7b5ad55796be5245ac8ae6af3
parentb9112106df4168693fdddfe8fff1ebd9d787cc18 (diff)
Add appc version properties
When we increment the version of the deployment project, builds will currently break since the version will be one ahead of the released version of appc. Adding properties to define the version of appc to download. Also adding a script to determine when snapshot or release version should be used. Change-Id: I50f6c8c64c5e80893a91810b6bff82609e5a36a1 Signed-off-by: Patrick Brady <pb071s@att.com> Issue-ID: CIMAN-120
-rw-r--r--installation/appc/pom.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/installation/appc/pom.xml b/installation/appc/pom.xml
index b0697da..db3ef98 100644
--- a/installation/appc/pom.xml
+++ b/installation/appc/pom.xml
@@ -19,7 +19,8 @@
<properties>
<image.name>openecomp/appc-image</image.name>
- <appc.version>${project.version}</appc.version>
+ <appc.release.version>1.3.0</appc.release.version>
+ <appc.snapshot.version>1.3.0-SNAPSHOT</appc.snapshot.version>
<!--This version will be over-ridden by jenkins
injecting the version.properties variable file during docker build-->
<appc.docker.staging.version>1.0.0</appc.docker.staging.version>
@@ -216,9 +217,11 @@
if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
project.properties['dockertag1']=project.properties['ver'] + "-latest";
project.properties['dockertag2']="latest";
+ project.properties['appc.version']=project.properties['appc.snapshot.version'];
} else {
project.properties['dockertag1']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
+ project.properties['appc.version']=project.properties['appc.release.version'];
}
println 'docker tag 1: ' + project.properties['dockertag1'];
println 'docker tag 2: ' + project.properties['dockertag2'];