diff options
Diffstat (limited to 'sdc-os-chef/pom.xml')
-rw-r--r-- | sdc-os-chef/pom.xml | 65 |
1 files changed, 43 insertions, 22 deletions
diff --git a/sdc-os-chef/pom.xml b/sdc-os-chef/pom.xml index 152b880136..d0131e4e55 100644 --- a/sdc-os-chef/pom.xml +++ b/sdc-os-chef/pom.xml @@ -20,32 +20,53 @@ <build> <plugins> <plugin> - <groupId>com.google.code.maven-replacer-plugin</groupId> - <artifactId>replacer</artifactId> - <version>1.5.3</version> + <artifactId>maven-clean-plugin</artifactId> + <version>3.0.0</version> <executions> <execution> - <phase>prepare-package</phase> + <id>clean.tosca.chef.os.folder</id> + <phase>clean</phase> <goals> - <goal>replace</goal> + <goal>clean</goal> </goals> + <configuration> + <filesets> + <fileset> + <directory>${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\</directory> + <followSymlinks>false</followSymlinks> + <includes> + <include>**/default.rb</include> + </includes> + </fileset> + </filesets> + </configuration> </execution> </executions> - + </plugin> + <plugin> + <groupId>ru.yaal.maven</groupId> + <artifactId>write-text-files-maven-plugin</artifactId> + <version>1.1</version> <configuration> - <basedir>${project.basedir}</basedir> - <includes> - <include>sdc-backend/Dockerfile</include> - <include>sdc-frontend/Dockerfile</include> - <include>scripts/docker_run.sh</include> - </includes> - <replacements> - <replacement> - <token>__SDC-RELEASE__</token> - <value>${project.version}</value> - </replacement> - </replacements> + <charset>UTF-8</charset> + <files> + <file> + <path>${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb</path> + <lines> + <line>normal['version'] = "${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line> + </lines> + </file> + </files> </configuration> + <executions> + <execution> + <id>write-text-files</id> + <phase>prepare-package</phase> + <goals> + <goal>write-text-files</goal> + </goals> + </execution> + </executions> </plugin> </plugins> </build> @@ -216,7 +237,7 @@ </image> <!-- Build sanity image --> - <image> + <!-- <image> <name>openecomp/sdc-sanity</name> <alias>sdc-sanity</alias> <build> @@ -228,7 +249,7 @@ <tag>1.1-STAGING-latest</tag> </tags> </build> - </image> + </image> --> </images> </configuration> @@ -241,7 +262,7 @@ </goals> <configuration> <removeAll>true</removeAll> - <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana,openecomp/sdc-sanity</image> + <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana<!-- ,openecomp/sdc-sanity --></image> </configuration> </execution> @@ -261,7 +282,7 @@ <goal>push</goal> </goals> <configuration> - <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana,openecomp/sdc-sanity</image> + <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana<!-- ,openecomp/sdc-sanity --></image> </configuration> </execution> </executions> |