Preparing for INT-607 69/59669/3
authorMarcin Migdal <marcin.migdal@nokia.com>
Wed, 8 Aug 2018 13:38:11 +0000 (15:38 +0200)
committerMarcin Migdal <marcin.migdal@nokia.com>
Wed, 8 Aug 2018 14:14:50 +0000 (16:14 +0200)
Attempt to fix build

Change-Id: I47e1b77d9f434a5c6a116f42db338e9b08697559
Issue-ID: INT-607
Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
test/mocks/pnfsimulator/pom.xml

index 442d3fc..03dc374 100644 (file)
       <version>${junit.jupiter.version}</version>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <version>${junit.vintage.version}</version>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
             </goals>
           </execution>
           <execution>
-            <id>tag-and-push-image-latest</id>
-            <phase>deploy</phase>
+            <id>tag-image-latest</id>
+            <phase>package</phase>
             <goals>
               <goal>tag</goal>
             </goals>
             <configuration>
               <image>${docker.image.name}:latest</image>
               <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
+              <!-- WA in case push does not wort at seconf job - to remove
               <pushImage>true</pushImage>
+              -->
             </configuration>
           </execution>
           <execution>
-            <id>tag-and-push-image-with-version</id>
-            <phase>deploy</phase>
+            <id>push-image-latest</id>
+            <phase>none</phase>
+            <goals>
+              <goal>push</goal>
+            </goals>
+            <configuration>
+              <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</imageName>
+            </configuration>
+          </execution>
+          <execution>
+            <id>tag-image-with-version</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>
-              <pushImage>true</pushImage>
             </configuration>
           </execution>
           <execution>
-            <id>tag-and-push-image-with-version-and-date</id>
-            <phase>deploy</phase>
+            <id>push-image-with-version</id>
+            <phase>none</phase>
+            <goals>
+              <goal>push</goal>
+            </goals>
+            <configuration>
+              <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</imageName>
+            </configuration>
+          </execution>
+          <execution>
+            <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}-${maven.build.timestamp}
-              </newName>
-              <pushImage>true</pushImage>
+              <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}</newName>
+            </configuration>
+          </execution>
+          <execution>
+            <id>push-image-with-version-and-date</id>
+            <phase>none</phase>
+            <goals>
+              <goal>push</goal>
+            </goals>
+            <configuration>
+              <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}</imageName>
             </configuration>
           </execution>
         </executions>