diff options
author | lizi <li.zi30@zte.com.cn> | 2017-10-13 12:57:37 +0800 |
---|---|---|
committer | lizi <li.zi30@zte.com.cn> | 2017-10-13 13:38:41 +0800 |
commit | d34a9688b74e418871e858834345a73d9afce610 (patch) | |
tree | 3b99912c9ec0684ea77206bf849e16b260516757 /distribution/pom.xml | |
parent | 02e266a4c4948bce1765179ed3fcb4e8ce46e656 (diff) |
Add staging version.
Add staging version, remove the unused files.
Change-Id: I7ad2b91d956b48ab393d633de7ac6596877175f3
Issue-ID: AAI-432
Signed-off-by: lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'distribution/pom.xml')
-rw-r--r-- | distribution/pom.xml | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/distribution/pom.xml b/distribution/pom.xml index ab03967..d0e2a77 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -248,6 +248,32 @@ </execution> </executions> </plugin> + <!--<plugin> + <groupId>org.codehaus.groovy.maven</groupId> + <artifactId>gmaven-plugin</artifactId> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <source> + println project.properties['aai.esr.gui.project.version']; + def versionArray; + if ( project.properties['aai.esr.gui.project.version'] != null ) { + versionArray = project.properties['aai.esr.gui.project.version'].split('-'); + } + + project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest"; + + println 'New Tag for docker:' + + project.properties['project.docker.latesttag.version']; + </source> + </configuration> + </execution> + </executions> + </plugin>--> </plugins> </build> @@ -270,7 +296,9 @@ <dockerFileDir>${basedir}/${version.output}</dockerFileDir> <dockerFile>${basedir}/target/version/Dockerfile</dockerFile> <tags> - <tag>${project.version}-STAGING-latest</tag> + <tag>${project.version}</tag> + <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> + <tag>${project.docker.latesttag.version}</tag> </tags> </build> </image> |