summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mocks/pnfsimulator/pom.xml39
1 files changed, 26 insertions, 13 deletions
diff --git a/test/mocks/pnfsimulator/pom.xml b/test/mocks/pnfsimulator/pom.xml
index bbb91ea8e..18e8163bc 100644
--- a/test/mocks/pnfsimulator/pom.xml
+++ b/test/mocks/pnfsimulator/pom.xml
@@ -282,45 +282,58 @@
</configuration>
</execution>
<execution>
- <id>push-image-latest</id>
- <phase>none</phase>
+ <id>tag-image-with-version</id>
+ <phase>package</phase>
<goals>
- <goal>push</goal>
+ <goal>tag</goal>
</goals>
<configuration>
- <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</imageName>
+ <image>${docker.image.name}:latest</image>
+ <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
</configuration>
</execution>
<execution>
- <id>tag-image-with-version</id>
+ <id>tag-image-with-version-and-date</id>
<phase>package</phase>
<goals>
<goal>tag</goal>
</goals>
<configuration>
<image>${docker.image.name}:latest</image>
- <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
+ <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}</newName>
</configuration>
</execution>
+
+ <!-- testing pushing default imgae-->
<execution>
- <id>push-image-with-version</id>
+ <id>default</id>
+ <goals>
+ <goal>push</goal>
+ </goals>
+ <configuration>
+ <registryUrl>${onap.nexus.dockerregistry.daily}</registryUrl>
+ <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</imageName>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>push-image-latest</id>
<phase>none</phase>
<goals>
<goal>push</goal>
</goals>
<configuration>
- <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</imageName>
+ <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</imageName>
</configuration>
</execution>
<execution>
- <id>tag-image-with-version-and-date</id>
- <phase>package</phase>
+ <id>push-image-with-version</id>
+ <phase>none</phase>
<goals>
- <goal>tag</goal>
+ <goal>push</goal>
</goals>
<configuration>
- <image>${docker.image.name}:latest</image>
- <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}</newName>
+ <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</imageName>
</configuration>
</execution>
<execution>