- <source>
- println
- project.properties['sdnc.project.version'];
- def versionArray;
- if (
- project.properties['sdnc.project.version']
- != null ) {
- versionArray = project.properties['sdnc.project.version'].split('\\.');
- }
-
- if
- (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
- {
- project.properties['project.docker.latesttag.version']=versionArray[0]
- + '.' + versionArray[1] +
- "-STAGING-latest";
- } else {
- project.properties['project.docker.latesttag.version']=versionArray[0]
- + '.' + versionArray[1] +
- "-STAGING-latest";
- }
-
- println 'New Tag for
- docker:' +
- project.properties['project.docker.latesttag.version'];
- </source>