Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 3 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 4 | <modelVersion>4.0.0</modelVersion> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 5 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 6 | <artifactId>sdc-os-chef</artifactId> |
Tal Gitelman | 0c3b189 | 2017-10-04 16:56:23 +0300 | [diff] [blame] | 7 | <packaging>pom</packaging> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 8 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 9 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 10 | <parent> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
| 12 | <artifactId>sdc-main</artifactId> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 13 | <version>1.2.0-SNAPSHOT</version> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 14 | </parent> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 15 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 16 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 17 | <build> |
| 18 | <plugins> |
| 19 | <plugin> |
| 20 | <artifactId>maven-clean-plugin</artifactId> |
| 21 | <version>3.0.0</version> |
| 22 | <executions> |
| 23 | <execution> |
| 24 | <id>clean.tosca.chef.os.folder</id> |
| 25 | <phase>clean</phase> |
| 26 | <goals> |
| 27 | <goal>clean</goal> |
| 28 | </goals> |
| 29 | <configuration> |
| 30 | <filesets> |
Yuli Shlosberg | 0566f58 | 2017-11-26 19:05:23 +0200 | [diff] [blame] | 31 | <fileset> |
| 32 | <directory>${project.basedir}/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/</directory> |
| 33 | <followSymlinks>false</followSymlinks> |
| 34 | <includes> |
| 35 | <include>**/default.rb</include> |
| 36 | </includes> |
| 37 | </fileset> |
Tal Gitelman | 15c2ce7 | 2017-10-18 19:47:40 +0300 | [diff] [blame] | 38 | <!-- Sanity jar --> |
| 39 | <fileset> |
| 40 | <directory>${project.basedir}/sdc-sanity</directory> |
| 41 | <followSymlinks>false</followSymlinks> |
| 42 | <includes> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 43 | <include>*.jar</include> |
| 44 | </includes> |
Tal Gitelman | 15c2ce7 | 2017-10-18 19:47:40 +0300 | [diff] [blame] | 45 | </fileset> |
| 46 | <!-- Sanity test suites --> |
| 47 | <fileset> |
| 48 | <directory>${project.basedir}/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</directory> |
| 49 | <followSymlinks>false</followSymlinks> |
| 50 | </fileset> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 51 | </filesets> |
| 52 | </configuration> |
| 53 | </execution> |
| 54 | </executions> |
| 55 | </plugin> |
| 56 | <plugin> |
| 57 | <groupId>ru.yaal.maven</groupId> |
| 58 | <artifactId>write-text-files-maven-plugin</artifactId> |
| 59 | <version>1.1</version> |
| 60 | <configuration> |
| 61 | <charset>UTF-8</charset> |
| 62 | <files> |
| 63 | <file> |
| 64 | <path> |
| 65 | ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb |
| 66 | </path> |
| 67 | <lines> |
Yuli Shlosberg | 0566f58 | 2017-11-26 19:05:23 +0200 | [diff] [blame] | 68 | <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 69 | </lines> |
| 70 | </file> |
| 71 | </files> |
| 72 | </configuration> |
| 73 | <executions> |
| 74 | <execution> |
| 75 | <id>write-text-files</id> |
| 76 | <phase>prepare-package</phase> |
| 77 | <goals> |
| 78 | <goal>write-text-files</goal> |
| 79 | </goals> |
| 80 | </execution> |
| 81 | </executions> |
| 82 | </plugin> |
| 83 | </plugins> |
| 84 | </build> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 85 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 86 | <profiles> |
| 87 | <profile> |
| 88 | <id>docker-staging</id> |
| 89 | <properties> |
| 90 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 91 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
| 92 | </properties> |
| 93 | </profile> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 94 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 95 | <profile> |
| 96 | <id>docker</id> |
| 97 | <activation> |
| 98 | <activeByDefault>false</activeByDefault> |
| 99 | </activation> |
| 100 | <build> |
| 101 | <plugins> |
| 102 | <plugin> |
| 103 | <artifactId>maven-resources-plugin</artifactId> |
| 104 | <version>3.0.2</version> |
| 105 | <executions> |
| 106 | <execution> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 107 | <id>copy-tests-suites</id> |
| 108 | <phase>validate</phase> |
| 109 | <goals> |
| 110 | <goal>copy-resources</goal> |
| 111 | </goals> |
| 112 | <configuration> |
| 113 | <outputDirectory>sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</outputDirectory> |
| 114 | <resources> |
| 115 | <resource> |
| 116 | <directory>${project.parent.basedir}/test-apis-ci/src/main/resources/ci/testSuites</directory> |
| 117 | <includes> |
| 118 | <include>*</include> |
| 119 | </includes> |
| 120 | </resource> |
| 121 | </resources> |
| 122 | </configuration> |
| 123 | </execution> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 124 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 125 | <execution> |
| 126 | <id>copy-resources-test-apis-ci</id> |
| 127 | <phase>validate</phase> |
| 128 | <goals> |
| 129 | <goal>copy-resources</goal> |
| 130 | </goals> |
| 131 | <configuration> |
| 132 | <outputDirectory>${basedir}/sdc-sanity</outputDirectory> |
| 133 | <resources> |
| 134 | <resource> |
| 135 | <directory>${project.parent.basedir}/test-apis-ci/target</directory> |
| 136 | <includes> |
| 137 | <include>test-apis-ci-${project.version}-jar-with-dependencies.jar</include> |
| 138 | </includes> |
| 139 | </resource> |
| 140 | </resources> |
| 141 | </configuration> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 142 | </execution> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 143 | </executions> |
| 144 | </plugin> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 145 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 146 | <plugin> |
| 147 | <groupId>io.fabric8</groupId> |
| 148 | <artifactId>docker-maven-plugin</artifactId> |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame^] | 149 | <version>${fabric8.version}</version> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 150 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 151 | <configuration> |
| 152 | <verbose>true</verbose> |
| 153 | <apiVersion>1.23</apiVersion> |
Yuli Shlosberg | 4414495 | 2017-11-09 13:34:49 +0200 | [diff] [blame] | 154 | <registry>nexus3.onap.org:10001</registry> |
Idan Amit | 7cb00e6 | 2017-10-26 10:02:20 +0300 | [diff] [blame] | 155 | <authConfig> |
Idan Amit | bc51da2 | 2017-10-26 16:56:53 +0300 | [diff] [blame] | 156 | <pull> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 157 | <username>docker</username> |
| 158 | <password>docker</password> |
| 159 | </pull> |
| 160 | </authConfig> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 161 | <images> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 162 | |
Tal Gitelman | 38211c8 | 2018-01-24 17:59:53 +0200 | [diff] [blame] | 163 | <!-- Build init-elastic search image --> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 164 | <image> |
Tal Gitelman | 38211c8 | 2018-01-24 17:59:53 +0200 | [diff] [blame] | 165 | <name>onap/sdc-init-elasticsearch</name> |
| 166 | <alias>sdc-init-elasticsearch</alias> |
| 167 | <build> |
| 168 | <cleanup>try</cleanup> |
| 169 | <dockerFileDir>${project.basedir}/sdc-init-elasticsearch</dockerFileDir> |
| 170 | <tags> |
| 171 | <tag>${docker.tag}</tag> |
| 172 | <tag>${docker.latest.tag}</tag> |
| 173 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 174 | </tags> |
| 175 | </build> |
| 176 | </image> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 177 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 178 | <!-- Build elastic search image --> |
| 179 | <image> |
Idan Amit | 55dda1a | 2017-12-06 17:21:38 +0200 | [diff] [blame] | 180 | <name>onap/sdc-elasticsearch</name> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 181 | <alias>sdc-elasticsearch</alias> |
| 182 | <build> |
| 183 | <cleanup>try</cleanup> |
| 184 | <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir> |
| 185 | <tags> |
| 186 | <tag>${docker.tag}</tag> |
| 187 | <tag>${docker.latest.tag}</tag> |
| 188 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 189 | </tags> |
| 190 | </build> |
| 191 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 192 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 193 | <!-- Build kibana image --> |
| 194 | <image> |
Idan Amit | 55dda1a | 2017-12-06 17:21:38 +0200 | [diff] [blame] | 195 | <name>onap/sdc-kibana</name> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 196 | <alias>sdc-kibana</alias> |
| 197 | <build> |
| 198 | <cleanup>try</cleanup> |
| 199 | <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir> |
| 200 | <tags> |
| 201 | <tag>${docker.tag}</tag> |
| 202 | <tag>${docker.latest.tag}</tag> |
| 203 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 204 | </tags> |
| 205 | </build> |
| 206 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 207 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 208 | <!-- Build cassandra image --> |
| 209 | <image> |
Idan Amit | 55dda1a | 2017-12-06 17:21:38 +0200 | [diff] [blame] | 210 | <name>onap/sdc-cassandra</name> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 211 | <alias>sdc-cassandra</alias> |
| 212 | <build> |
| 213 | <cleanup>try</cleanup> |
| 214 | <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir> |
| 215 | <tags> |
| 216 | <tag>${docker.tag}</tag> |
| 217 | <tag>${docker.latest.tag}</tag> |
| 218 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 219 | </tags> |
| 220 | </build> |
| 221 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 222 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 223 | <!-- Build sanity image --> |
| 224 | <image> |
Idan Amit | 55dda1a | 2017-12-06 17:21:38 +0200 | [diff] [blame] | 225 | <name>onap/sdc-sanity</name> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 226 | <alias>sdc-sanity</alias> |
| 227 | <build> |
| 228 | <cleanup>try</cleanup> |
| 229 | <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir> |
| 230 | <tags> |
| 231 | <tag>${docker.tag}</tag> |
| 232 | <tag>${docker.latest.tag}</tag> |
Tal Gitelman | 15c2ce7 | 2017-10-18 19:47:40 +0300 | [diff] [blame] | 233 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 234 | </tags> |
| 235 | </build> |
| 236 | </image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 237 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 238 | </images> |
| 239 | </configuration> |
| 240 | <executions> |
| 241 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 242 | <id>clean-images</id> |
| 243 | <phase>pre-clean</phase> |
| 244 | <goals> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 245 | <goal>remove</goal> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 246 | </goals> |
| 247 | <configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 248 | <removeAll>true</removeAll> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 249 | <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra,onap/sdc-sanity</image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 250 | </configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 251 | </execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 252 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 253 | <execution> |
| 254 | <id>generate-images</id> |
| 255 | <phase>package</phase> |
| 256 | <goals> |
| 257 | <goal>build</goal> |
| 258 | </goals> |
| 259 | </execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 260 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 261 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 262 | <id>push-images</id> |
| 263 | <phase>deploy</phase> |
| 264 | <goals> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 265 | <goal>push</goal> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 266 | </goals> |
| 267 | <configuration> |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 268 | <image>onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra,onap/sdc-sanity</image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 269 | </configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 270 | </execution> |
| 271 | </executions> |
| 272 | </plugin> |
| 273 | </plugins> |
| 274 | </build> |
| 275 | </profile> |
| 276 | </profiles> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 277 | </project> |