Merge "Update readme to replace openecomp with onap"
authorChristophe Closset <cc697w@intl.att.com>
Mon, 10 Apr 2017 12:50:48 +0000 (12:50 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 10 Apr 2017 12:50:48 +0000 (12:50 +0000)
packages/deliveries/pom.xml
packages/docker/pom.xml
pom.xml

index 679cebd..61236ed 100644 (file)
@@ -16,7 +16,7 @@
        <description>This project is responsible of the final packages</description>
        <organization>
                <name>OPENECOMP - MSO</name>
-               <url>http://www.openecomp.org/</url>
+               <url>http://www.onap.org/</url>
        </organization>
 
 
@@ -52,6 +52,7 @@
                                        <!-- DEVELOPER PACKS -->
                                        <execution>
                                                <configuration>
+                                                       <tarLongFileMode>posix</tarLongFileMode>
 
                                                        <descriptors>
                                                                <descriptor>src/main/assembly/war-pack/mso-wars.xml</descriptor>
@@ -75,4 +76,4 @@
                </plugins>
        </build>
 
-</project>
\ No newline at end of file
+</project>
index c31a775..58ac368 100644 (file)
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
                <!-- If the maven profile "docker" is specified the parameter -Dmso.git.url=<MsoGitRepo> must be provided
-                    i.e: mvn clean install -P docker -Dmso.git.url=https://gerrit.openecomp.org/r-->
+                    i.e: mvn clean install -P docker -Dmso.git.url=https://gerrit.onap.org/r-->
                <mso.git.url>${env.GIT_NO_PROJECT}</mso.git.url>
+               <mso.project.version>${project.version}</mso.project.version>
        </properties>
 
        <build>
                <finalName>${project.artifactId}-${project.version}</finalName>
                <plugins>
+                     <plugin>
+                <groupId>org.codehaus.groovy.maven</groupId>
+                <artifactId>gmaven-plugin</artifactId>
+                <executions>
+                  <execution>
+                    <phase>validate</phase>
+                    <goals>
+                      <goal>execute</goal>
+                    </goals>
+                    <configuration>
+                      <source>
+                        println project.properties['mso.project.version'];
+                        def versionArray;
+                        if ( project.properties['mso.project.version'] != null ) {
+                            versionArray = project.properties['mso.project.version'].split('\\.');
+                        } 
+
+                        if ( project.properties['mso.project.version'].endsWith("-SNAPSHOT") ) {
+                            project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest";
+                        } else {
+                            project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+                        }
+
+                        println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
+                      </source>
+                    </configuration>
+                  </execution>
+              </executions>
+            </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-scm-plugin</artifactId>
                                                        <build>
                                                                <tags>
                                                                        <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
+                                                                       <tag>${project.docker.latesttag.version}</tag>
                                                                </tags>
                                                                <cleanup>try</cleanup>
                                                                <dockerFileDir>docker-files</dockerFileDir>
                                                        <build>
                                                                <tags>
                                                                        <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
+                                                                       <tag>${project.docker.latesttag.version}</tag>
                                                                </tags>
                                                                <cleanup>try</cleanup>
                                                                <dockerFileDir>docker-files</dockerFileDir>
diff --git a/pom.xml b/pom.xml
index 7e308c7..0f0ca27 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
        </description>
        <organization>
                <name>OPENECOMP - MSO</name>
-               <url>http://www.openecomp.org/</url>
+               <url>http://www.onap.org/</url>
        </organization>
        <modules>
                <module>common</module>
@@ -39,7 +39,7 @@
                <!-- this is used for Chef mso-code cookbook -->
                <swm.version>2.19.3-1</swm.version>
                <evosuiteVersion>1.0.4-alpha2</evosuiteVersion>
-               <nexusproxy>https://nexus.openecomp.org</nexusproxy>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
                <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
                <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
                 <sitePath>/content/sites/site/org/openecomp/mso/${project.version}</sitePath>