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
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'];