diff options
author | Li Zi <li.zi30@zte.com.cn> | 2017-10-13 05:44:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-13 05:44:58 +0000 |
commit | 59ca8dca2c5680c44aa933ca3133784a447a5db0 (patch) | |
tree | 9b7169631bc4197bfee13667e1c27345a67de034 /distribution/pom.xml | |
parent | 2c3965859fcd35ce0f61e6ea2296acda2884df63 (diff) | |
parent | d34a9688b74e418871e858834345a73d9afce610 (diff) |
Merge "Add staging version."
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> |