Merge "OCI image spec labels for models-simulator"
authorLiam Fallon <liam.fallon@est.tech>
Thu, 30 Jun 2022 10:11:04 +0000 (10:11 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 30 Jun 2022 10:11:04 +0000 (10:11 +0000)
models-sim/packages/models-simulator-docker/pom.xml
releases/2.6.4.yaml [new file with mode: 0644]

index 4919a7f..15daf00 100644 (file)
@@ -53,9 +53,9 @@
         <finalName>${project.artifactId}-${project.version}</finalName>
         <plugins>
             <plugin>
-                <groupId>org.codehaus.groovy.maven</groupId>
-                <artifactId>gmaven-plugin</artifactId>
-                <version>1.0</version>
+                <groupId>org.codehaus.gmaven</groupId>
+                <artifactId>groovy-maven-plugin</artifactId>
+                <version>2.1.1</version>
                 <executions>
                     <execution>
                         <phase>validate</phase>
                             <goal>execute</goal>
                         </goals>
                         <configuration>
-                            <source>
-                                println 'Project version: ' + project.properties['dist.project.version']
-                                if (project.properties['dist.project.version'] != null) {
-                                    def versionArray = project.properties['dist.project.version'].split('-')
-                                    def minMaxVersionArray = versionArray[0].tokenize('.')
-                                    if (project.properties['dist.project.version'].endsWith("-SNAPSHOT")) {
-                                        project.properties['project.docker.latest.minmax.tag.version'] =
-                                          minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-SNAPSHOT-latest"
-                                    } else {
-                                        project.properties['project.docker.latest.minmax.tag.version'] =
-                                          minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-STAGING-latest"
-                                    }
-                                    println 'New tag for docker: ' + project.properties['project.docker.latest.minmax.tag.version']
-                                }
-                            </source>
+                            <source>https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy</source>
                         </configuration>
                     </execution>
                 </executions>
diff --git a/releases/2.6.4.yaml b/releases/2.6.4.yaml
new file mode 100644 (file)
index 0000000..3ce2855
--- /dev/null
@@ -0,0 +1,5 @@
+distribution_type: 'maven'
+version: '2.6.4'
+project: 'policy-models'
+tag_release: false
+log_dir: 'policy-models-maven-stage-jakarta/38/'