change if bad to assert not bad, message
[vvp/validation-scripts.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index d8a2057..600e40d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,13 +4,13 @@
   <parent>
     <groupId>org.onap.oparent</groupId>
     <artifactId>oparent</artifactId>
-    <version>1.2.0</version>
+    <version>2.1.0</version>
   </parent>
 
   <groupId>org.onap.vvp.validation-scripts</groupId>
   <artifactId>validation-scripts</artifactId>
   <packaging>pom</packaging>
-  <version>1.0.0-SNAPSHOT</version>
+  <version>5.0.1</version>
   <name>vvp-validation-scripts</name>
 
   <properties>
         <!--maven-->
         <timestamp>${maven.build.timestamp}</timestamp>
         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+        <!--docker-->
+        <docker.tag>${project.version}-${timestamp}</docker.tag>
+        <docker.latest.tag>${project.version}-latest</docker.latest.tag>
+        <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
+        <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
         <!--sonar-->
         <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
         <sonar.sources>.</sonar.sources>
         <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
         <sonar.language>py</sonar.language>
         <sonar.pluginName>python</sonar.pluginName>
-        <sonar.inclusions>ice_validator/tests/**.py</sonar.inclusions>
+        <sonar.inclusions>ice_validator/**.py</sonar.inclusions>
   </properties>
 
   <build>
                 <serverId>ecomp-staging</serverId>
             </configuration>
         </plugin>
+        <plugin>
+            <groupId>io.fabric8</groupId>
+            <artifactId>docker-maven-plugin</artifactId>
+            <version>0.19.0</version>
+            <configuration>
+                <pullRegistry>${docker.pull.registry}</pullRegistry>
+                <pushRegistry>${docker.push.registry}</pushRegistry>
+                <images>
+                    <image>
+                        <name>onap/vvp/validation-scripts</name>
+                        <alias>validation-scripts</alias>
+                        <build>
+                            <cleanup>true</cleanup>
+                            <tags>
+                                <tag>${docker.tag}</tag>
+                                <tag>${docker.latest.tag}</tag>
+                            </tags>
+                            <dockerFileDir>${project.basedir}</dockerFileDir>
+                        </build>
+                    </image>
+                </images>
+            </configuration>
+            <executions>
+                <execution>
+                    <id>clean-images</id>
+                    <phase>pre-clean</phase>
+                    <goals>
+                        <goal>remove</goal>
+                    </goals>
+                    <configuration>
+                        <removeAll>true</removeAll>
+                    </configuration>
+                </execution>
+
+                <execution>
+                    <id>generate-images</id>
+                    <phase>package</phase>
+                    <goals>
+                        <goal>build</goal>
+                    </goals>
+                </execution>
+
+                <execution>
+                    <id>push-images</id>
+                    <phase>deploy</phase>
+                    <goals>
+                        <goal>build</goal>
+                        <goal>push</goal>
+                    </goals>
+                    <configuration>
+                        <image>onap/vvp/validation-scripts</image>
+                    </configuration>
+                </execution>
+            </executions>
+        </plugin>
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>exec-maven-plugin</artifactId>
   <repositories>
     <repository>
         <id>ecomp-releases</id>
-          <name>ECOMP Release Repository</name>
+          <name>Release Repository</name>
           <url>${onap.nexus.url}/content/repositories/releases/</url>
     </repository>
     <repository>
           <id>ecomp-snapshots</id>
-          <name>ECOMP Snapshot Repository</name>
+          <name>Snapshot Repository</name>
           <url>${onap.nexus.url}/content/repositories/snapshots/</url>
     </repository>
     <repository>
         <id>ecomp-staging</id>
-        <name>ECOMP Staging Repository</name>
+        <name>Staging Repository</name>
         <url>${onap.nexus.url}/content/repositories/staging/</url>
     </repository>
   </repositories>