Allow only released docker images in the manifest
[integration.git] / version-manifest / pom.xml
index 163b7f1..89fb1b1 100644 (file)
@@ -4,11 +4,11 @@
   <parent>
     <groupId>org.onap.oparent</groupId>
     <artifactId>oparent</artifactId>
-    <version>0.1.1</version>
+    <version>1.1.1</version>
   </parent>
   <groupId>org.onap.integration</groupId>
   <artifactId>version-manifest</artifactId>
-  <version>0.1.1-SNAPSHOT</version>
+  <version>2.0.0-SNAPSHOT</version>
   <packaging>maven-plugin</packaging>
   <name>ONAP Version Manifest and Maven Plugin</name>
   <url>https://www.onap.org</url>
@@ -92,7 +92,7 @@
         <artifactId>exec-maven-plugin</artifactId>
         <version>1.6.0</version>
         <configuration>
-          <executable>sort</executable>
+          <executable>bash</executable>
         </configuration>
         <executions>
           <execution>
             </goals>
             <configuration>
               <arguments>
-                <argument>-c</argument>
+                <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
                 <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
               </arguments>
             </configuration>
             </goals>
             <configuration>
               <arguments>
-                <argument>-c</argument>
+                <argument>${project.basedir}/src/main/scripts/check-sorted.sh</argument>
                 <argument>${project.basedir}/src/main/resources/java-manifest.csv</argument>
               </arguments>
             </configuration>
           </execution>
+          <execution>
+            <id>check-docker-images-released</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <configuration>
+              <arguments>
+                <argument>${project.basedir}/src/main/scripts/check-docker-manifest.sh</argument>
+                <argument>${project.basedir}/src/main/resources/docker-manifest.csv</argument>
+              </arguments>
+            </configuration>
+          </execution>
         </executions>
       </plugin>
     </plugins>