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> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 7 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 8 | <parent> |
| 9 | <groupId>org.openecomp.sdc</groupId> |
| 10 | <artifactId>sdc-main</artifactId> |
Michael Lando | 0ad3c80 | 2017-09-19 16:32:59 +0300 | [diff] [blame] | 11 | <version>1.2.0-SNAPSHOT</version> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 12 | </parent> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 13 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 14 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 15 | <properties> |
| 16 | <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag> |
| 17 | <docker.latest.tag>${project.version}-latest</docker.latest.tag> |
| 18 | </properties> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 19 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 20 | <build> |
| 21 | <plugins> |
| 22 | <plugin> |
| 23 | <artifactId>maven-clean-plugin</artifactId> |
| 24 | <version>3.0.0</version> |
| 25 | <executions> |
| 26 | <execution> |
| 27 | <id>clean.tosca.chef.os.folder</id> |
| 28 | <phase>clean</phase> |
| 29 | <goals> |
| 30 | <goal>clean</goal> |
| 31 | </goals> |
| 32 | <configuration> |
| 33 | <filesets> |
| 34 | <fileset> |
| 35 | <directory> |
| 36 | ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\ |
| 37 | </directory> |
| 38 | <followSymlinks>false</followSymlinks> |
| 39 | <includes> |
| 40 | <include>**/default.rb</include> |
| 41 | </includes> |
| 42 | </fileset> |
Tal Gitelman | 004829c | 2017-09-10 20:06:45 +0300 | [diff] [blame] | 43 | <!-- static configuration files --> |
| 44 | <fileset> |
| 45 | <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</directory> |
| 46 | <includes> |
| 47 | <include>Artifact-Generator.properties</include> |
| 48 | <include>error-configuration.yaml</include> |
| 49 | <include>ecomp-error-configuration.yaml</include> |
| 50 | <include>logback.xml</include> |
| 51 | </includes> |
| 52 | </fileset> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 53 | </filesets> |
| 54 | </configuration> |
| 55 | </execution> |
| 56 | </executions> |
| 57 | </plugin> |
| 58 | <plugin> |
| 59 | <groupId>ru.yaal.maven</groupId> |
| 60 | <artifactId>write-text-files-maven-plugin</artifactId> |
| 61 | <version>1.1</version> |
| 62 | <configuration> |
| 63 | <charset>UTF-8</charset> |
| 64 | <files> |
| 65 | <file> |
| 66 | <path> |
| 67 | ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb |
| 68 | </path> |
| 69 | <lines> |
| 70 | <line>normal['version'] = |
| 71 | "${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}" |
| 72 | </line> |
| 73 | </lines> |
| 74 | </file> |
| 75 | </files> |
| 76 | </configuration> |
| 77 | <executions> |
| 78 | <execution> |
| 79 | <id>write-text-files</id> |
| 80 | <phase>prepare-package</phase> |
| 81 | <goals> |
| 82 | <goal>write-text-files</goal> |
| 83 | </goals> |
| 84 | </execution> |
| 85 | </executions> |
| 86 | </plugin> |
| 87 | </plugins> |
| 88 | </build> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 89 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 90 | <profiles> |
| 91 | <profile> |
| 92 | <id>docker-staging</id> |
| 93 | <properties> |
| 94 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 95 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
| 96 | </properties> |
| 97 | </profile> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 98 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 99 | <profile> |
| 100 | <id>docker</id> |
| 101 | <activation> |
| 102 | <activeByDefault>false</activeByDefault> |
| 103 | </activation> |
| 104 | <build> |
| 105 | <plugins> |
| 106 | <plugin> |
| 107 | <artifactId>maven-resources-plugin</artifactId> |
| 108 | <version>3.0.2</version> |
| 109 | <executions> |
| 110 | <execution> |
| 111 | <id>copy-resources-apidocs</id> |
| 112 | <phase>validate</phase> |
| 113 | <goals> |
| 114 | <goal>copy-resources</goal> |
| 115 | </goals> |
| 116 | <configuration> |
| 117 | <outputDirectory>${basedir}/sdc-backend</outputDirectory> |
| 118 | <resources> |
| 119 | <resource> |
| 120 | <directory> |
| 121 | ${project.parent.basedir}/openecomp-be/tools/swagger-ui/api-docs |
| 122 | </directory> |
| 123 | <includes> |
| 124 | <include>api-docs.war</include> |
| 125 | </includes> |
| 126 | </resource> |
| 127 | </resources> |
| 128 | </configuration> |
| 129 | </execution> |
Tal Gitelman | 004829c | 2017-09-10 20:06:45 +0300 | [diff] [blame] | 130 | |
| 131 | <execution> |
| 132 | <id>copy-static-configuration-files</id> |
| 133 | <phase>validate</phase> |
| 134 | <goals> |
| 135 | <goal>copy-resources</goal> |
| 136 | </goals> |
| 137 | <configuration> |
| 138 | <outputDirectory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory> |
| 139 | <resources> |
| 140 | <resource> |
| 141 | <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory> |
| 142 | <includes> |
| 143 | <include>Artifact-Generator.properties</include> |
| 144 | <include>error-configuration.yaml</include> |
| 145 | <include>ecomp-error-configuration.yaml</include> |
| 146 | <include>logback.xml</include> |
| 147 | </includes> |
| 148 | </resource> |
| 149 | </resources> |
| 150 | </configuration> |
| 151 | </execution> |
| 152 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 153 | <execution> |
| 154 | <id>copy-resources-be</id> |
| 155 | <phase>validate</phase> |
| 156 | <goals> |
| 157 | <goal>copy-resources</goal> |
| 158 | </goals> |
| 159 | <configuration> |
| 160 | <outputDirectory>${basedir}/sdc-backend</outputDirectory> |
| 161 | <resources> |
| 162 | <resource> |
| 163 | <directory> |
| 164 | ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target |
| 165 | </directory> |
| 166 | <includes> |
| 167 | <include>onboarding-be-${project.version}.war</include> |
| 168 | </includes> |
| 169 | </resource> |
| 170 | </resources> |
| 171 | </configuration> |
| 172 | </execution> |
| 173 | <execution> |
| 174 | <id>copy-resources-fe</id> |
| 175 | <phase>validate</phase> |
| 176 | <goals> |
| 177 | <goal>copy-resources</goal> |
| 178 | </goals> |
| 179 | <configuration> |
| 180 | <outputDirectory>${basedir}/sdc-frontend</outputDirectory> |
| 181 | <resources> |
| 182 | <resource> |
| 183 | <directory>${project.parent.basedir}/openecomp-ui/target</directory> |
| 184 | <includes> |
| 185 | <include>onboarding-fe-${project.version}.war</include> |
| 186 | </includes> |
| 187 | </resource> |
| 188 | </resources> |
| 189 | </configuration> |
| 190 | </execution> |
| 191 | <execution> |
| 192 | <id>copy-tests-suites</id> |
| 193 | <phase>validate</phase> |
| 194 | <goals> |
| 195 | <goal>copy-resources</goal> |
| 196 | </goals> |
| 197 | <configuration> |
| 198 | <outputDirectory>sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</outputDirectory> |
| 199 | <resources> |
| 200 | <resource> |
| 201 | <directory>${project.parent.basedir}/test-apis-ci/src/main/resources/ci/testSuites</directory> |
| 202 | <includes> |
| 203 | <include>*</include> |
| 204 | </includes> |
| 205 | </resource> |
| 206 | </resources> |
| 207 | </configuration> |
| 208 | </execution> |
| 209 | <execution> |
| 210 | <id>copy-resources-test-apis-ci</id> |
| 211 | <phase>validate</phase> |
| 212 | <goals> |
| 213 | <goal>copy-resources</goal> |
| 214 | </goals> |
| 215 | <configuration> |
| 216 | <outputDirectory>${basedir}/sdc-sanity</outputDirectory> |
| 217 | <resources> |
| 218 | <resource> |
| 219 | <directory>${project.parent.basedir}/test-apis-ci/target</directory> |
| 220 | <includes> |
| 221 | <include>test-apis-ci-${project.version}-jar-with-dependencies.jar</include> |
| 222 | </includes> |
| 223 | </resource> |
| 224 | </resources> |
| 225 | </configuration> |
| 226 | </execution> |
| 227 | </executions> |
| 228 | </plugin> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 229 | |
| 230 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 231 | <plugin> |
| 232 | <groupId>io.fabric8</groupId> |
| 233 | <artifactId>docker-maven-plugin</artifactId> |
| 234 | <version>0.19.1</version> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 235 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 236 | <configuration> |
| 237 | <verbose>true</verbose> |
| 238 | <apiVersion>1.23</apiVersion> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 239 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 240 | <images> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 241 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 242 | <!-- Build backend image --> |
| 243 | <image> |
| 244 | <name>openecomp/sdc-backend</name> |
| 245 | <alias>sdc-backend</alias> |
| 246 | <build> |
| 247 | <cleanup>try</cleanup> |
| 248 | <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir> |
| 249 | <tags> |
| 250 | <tag>${docker.tag}</tag> |
| 251 | <tag>${docker.latest.tag}</tag><tag>$sedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 252 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 253 | </tags> |
| 254 | </build> |
| 255 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 256 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 257 | <!-- Build frontend image --> |
| 258 | <image> |
| 259 | <name>openecomp/sdc-frontend</name> |
| 260 | <alias>sdc-frontend</alias> |
| 261 | <build> |
| 262 | <cleanup>try</cleanup> |
| 263 | <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir> |
| 264 | <tags> |
| 265 | <tag>${docker.tag}</tag> |
| 266 | <tag>${docker.latest.tag}</tag> |
| 267 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 268 | </tags> |
| 269 | </build> |
| 270 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 271 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 272 | <!-- Build elastic search image --> |
| 273 | <image> |
| 274 | <name>openecomp/sdc-elasticsearch</name> |
| 275 | <alias>sdc-elasticsearch</alias> |
| 276 | <build> |
| 277 | <cleanup>try</cleanup> |
| 278 | <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir> |
| 279 | <tags> |
| 280 | <tag>${docker.tag}</tag> |
| 281 | <tag>${docker.latest.tag}</tag> |
| 282 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 283 | </tags> |
| 284 | </build> |
| 285 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 286 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 287 | <!-- Build kibana image --> |
| 288 | <image> |
| 289 | <name>openecomp/sdc-kibana</name> |
| 290 | <alias>sdc-kibana</alias> |
| 291 | <build> |
| 292 | <cleanup>try</cleanup> |
| 293 | <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir> |
| 294 | <tags> |
| 295 | <tag>${docker.tag}</tag> |
| 296 | <tag>${docker.latest.tag}</tag> |
| 297 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 298 | </tags> |
| 299 | </build> |
| 300 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 301 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 302 | <!-- Build cassandra image --> |
| 303 | <image> |
| 304 | <name>openecomp/sdc-cassandra</name> |
| 305 | <alias>sdc-cassandra</alias> |
| 306 | <build> |
| 307 | <cleanup>try</cleanup> |
| 308 | <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir> |
| 309 | <tags> |
| 310 | <tag>${docker.tag}</tag> |
| 311 | <tag>${docker.latest.tag}</tag> |
| 312 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 313 | </tags> |
| 314 | </build> |
| 315 | </image> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 316 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 317 | <!-- Build sanity image --> |
| 318 | <image> |
| 319 | <name>openecomp/sdc-sanity</name> |
| 320 | <alias>sdc-sanity</alias> |
| 321 | <build> |
| 322 | <cleanup>try</cleanup> |
| 323 | <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir> |
| 324 | <tags> |
| 325 | <tag>${docker.tag}</tag> |
| 326 | <tag>${docker.latest.tag}</tag> |
| 327 | <tag>1.1-STAGING-latest</tag> |
| 328 | </tags> |
| 329 | </build> |
| 330 | </image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 331 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 332 | </images> |
| 333 | </configuration> |
| 334 | <executions> |
| 335 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 336 | <id>clean-images</id> |
| 337 | <phase>pre-clean</phase> |
| 338 | <goals> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 339 | <goal>remove</goal> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 340 | </goals> |
| 341 | <configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 342 | <removeAll>true</removeAll> |
| 343 | <image>openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana,openecomp/sdc-sanity<!-- ,openecomp/sdc-sanity --></image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 344 | </configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 345 | </execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 346 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 347 | <execution> |
| 348 | <id>generate-images</id> |
| 349 | <phase>package</phase> |
| 350 | <goals> |
| 351 | <goal>build</goal> |
| 352 | </goals> |
| 353 | </execution> |
Michael Lando | 9dd269d | 2017-02-20 01:04:22 +0200 | [diff] [blame] | 354 | |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 355 | <execution> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 356 | <id>push-images</id> |
| 357 | <phase>deploy</phase> |
| 358 | <goals> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 359 | <goal>build</goal> |
| 360 | <goal>push</goal> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 361 | </goals> |
| 362 | <configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 363 | <image> |
| 364 | openecomp/sdc-backend,openecomp/sdc-frontend,openecomp/sdc-elasticsearch,openecomp/sdc-kibana,openecomp/sdc-sanity<!-- ,openecomp/sdc-sanity --></image> |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 365 | </configuration> |
Yuli Shlosberg | 9dde926 | 2017-09-12 14:11:48 +0300 | [diff] [blame] | 366 | </execution> |
| 367 | </executions> |
| 368 | </plugin> |
| 369 | </plugins> |
| 370 | </build> |
| 371 | </profile> |
| 372 | </profiles> |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 373 | </project> |