Docker should clone config first 75/5375/2
authorAnaël Closson <ac2550@intl.att.com>
Tue, 14 Feb 2017 10:17:50 +0000 (11:17 +0100)
committerAnaël Closson <ac2550@intl.att.com>
Thu, 16 Feb 2017 12:34:33 +0000 (12:34 +0000)
Mso-config and chef-config repos should be clone for docker image
builds. Those repositories are taken from official openecomp.org
repositories.

Change-Id: I754472cc2e28c2ec2021b2c853566e12f8c9fe6b
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
packages/docker/pom.xml
packages/docker/src/main/docker/docker-files/chef-configs/readme.md [deleted file]

index 8129336..f011618 100644 (file)
        <build>
                <finalName>${project.artifactId}-${project.version}</finalName>
                <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-scm-plugin</artifactId>
+                               <version>1.9.5</version>
+                               <executions>
+                                       <execution>
+                                               <id>chef-repo-checkout</id>
+                                               <goals>
+                                                       <goal>checkout</goal>
+                                               </goals>
+                                               <phase>initialize</phase>
+                                               <configuration>
+                                                       <connectionUrl>scm:git:ssh://gerrit.openecomp.org:29418/mso/chef-repo</connectionUrl>
+                                                       <checkoutDirectory>src/main/docker/docker-files/chef-configs/chef-repo</checkoutDirectory>
+                                                       <scmVersion>master</scmVersion>
+                                                       <scmVersionType>branch</scmVersionType>
+                                                       <skipCheckoutIfExists>true</skipCheckoutIfExists>
+                                                       <pushChanges>false</pushChanges>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>mso-config-checkout</id>
+                                               <goals>
+                                                       <goal>checkout</goal>
+                                               </goals>
+                                               <phase>initialize</phase>
+                                               <configuration>
+                                                       <connectionUrl>scm:git:ssh://gerrit.openecomp.org:29418/mso/mso-config</connectionUrl>
+                                                       <checkoutDirectory>src/main/docker/docker-files/chef-configs/mso-config</checkoutDirectory>
+                                                       <scmVersion>master</scmVersion>
+                                                       <scmVersionType>branch</scmVersionType>
+                                                       <skipCheckoutIfExists>true</skipCheckoutIfExists>
+                                                       <pushChanges>false</pushChanges>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                        <plugin>
                                <groupId>io.fabric8</groupId>
                                <artifactId>docker-maven-plugin</artifactId>
diff --git a/packages/docker/src/main/docker/docker-files/chef-configs/readme.md b/packages/docker/src/main/docker/docker-files/chef-configs/readme.md
deleted file mode 100644 (file)
index 6d42de8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Please clone the 'chef-repo' and 'mso-config' repository here before building images.