ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | <parent> |
| 5 | <groupId>org.openecomp.sdc</groupId> |
| 6 | <artifactId>sdc-main</artifactId> |
ilanap | 420afa9 | 2019-01-27 11:39:07 +0200 | [diff] [blame] | 7 | <version>1.4.0-SNAPSHOT</version> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 8 | </parent> |
| 9 | <artifactId>cucumber-bdd</artifactId> |
| 10 | <name>cucumber-bdd</name> |
| 11 | <groupId>org.openecomp.sdc</groupId> |
ilanap | e53320e | 2019-02-04 14:15:11 +0200 | [diff] [blame] | 12 | <version>1.4.0-SNAPSHOT</version> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 13 | <packaging>jar</packaging> |
| 14 | <build> |
| 15 | <plugins> |
| 16 | <plugin> |
| 17 | <artifactId>maven-clean-plugin</artifactId> |
| 18 | <version>2.6.1</version> |
| 19 | <executions> |
| 20 | <execution> |
| 21 | <id>clean.dist.folder</id> |
| 22 | <phase>clean</phase> |
| 23 | <goals> |
| 24 | <goal>clean</goal> |
| 25 | </goals> |
| 26 | <configuration> |
| 27 | <filesets> |
| 28 | <fileset> |
| 29 | <directory>${basedir}/report</directory> |
| 30 | <includes> |
| 31 | <include>**/*</include> |
| 32 | </includes> |
| 33 | </fileset> |
| 34 | <fileset> |
| 35 | <directory>${basedir}/resources/downloads</directory> |
| 36 | <includes> |
| 37 | <include>**/*</include> |
| 38 | </includes> |
| 39 | </fileset> |
| 40 | <fileset> |
| 41 | <directory>${basedir}/docs</directory> |
| 42 | <includes> |
| 43 | <include>**/*</include> |
| 44 | </includes> |
| 45 | </fileset> |
| 46 | <fileset> |
| 47 | <directory>${basedir}</directory> |
| 48 | <includes> |
| 49 | <include>jenkinsConfig.json</include> |
| 50 | </includes> |
| 51 | </fileset> |
| 52 | </filesets> |
| 53 | </configuration> |
| 54 | </execution> |
| 55 | </executions> |
| 56 | </plugin> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 57 | <plugin> |
| 58 | <artifactId>maven-resources-plugin</artifactId> |
| 59 | <version>2.7</version> |
| 60 | <configuration> |
| 61 | </configuration> |
| 62 | </plugin> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 63 | </plugins> |
| 64 | <resources> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 65 | <resource> |
| 66 | <directory>${basedir}/docker</directory> |
| 67 | <targetPath>${project.build.directory}/docker_assembly</targetPath> |
| 68 | <filtering>false</filtering> |
| 69 | </resource> |
| 70 | <resource> |
| 71 | <directory>${basedir}</directory> |
| 72 | <includes> |
| 73 | <include>features/**/*</include> |
| 74 | <include>stepDefinitions/**/*</include> |
| 75 | <include>plugins/**/*</include> |
| 76 | <include>resources/**/*</include> |
| 77 | <include>*.js*</include> |
| 78 | </includes> |
| 79 | <targetPath>${project.build.directory}/docker_assembly/cucumber</targetPath> |
| 80 | <filtering>false</filtering> |
| 81 | </resource> |
| 82 | </resources> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 83 | </build> |
| 84 | <profiles> |
| 85 | <profile> |
| 86 | <id>docker</id> |
| 87 | <activation> |
| 88 | <activeByDefault>false</activeByDefault> |
| 89 | </activation> |
| 90 | <build> |
| 91 | <plugins> |
| 92 | <plugin> |
| 93 | <groupId>io.fabric8</groupId> |
| 94 | <artifactId>docker-maven-plugin</artifactId> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 95 | <configuration> |
| 96 | <verbose>true</verbose> |
| 97 | <apiVersion>1.23</apiVersion> |
| 98 | <registry>nexus3.onap.org:10001</registry> |
| 99 | <authConfig> |
| 100 | <pull> |
| 101 | <username>docker</username> |
| 102 | <password>docker</password> |
| 103 | </pull> |
| 104 | </authConfig> |
| 105 | <images> |
| 106 | <!-- Build sanity image --> |
| 107 | <image> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 108 | <name>onap/cucumber-sdc-api-tests</name> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 109 | <alias>cucumber-sdc-api-tests</alias> |
| 110 | <build> |
| 111 | <cleanup>try</cleanup> |
| 112 | <dockerFileDir>${project.build.directory}/docker_assembly</dockerFileDir> |
| 113 | <tags> |
| 114 | <tag>${docker.tag}</tag> |
| 115 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 116 | </tags> |
| 117 | </build> |
| 118 | </image> |
| 119 | </images> |
| 120 | </configuration> |
| 121 | <executions> |
| 122 | <execution> |
| 123 | <id>clean-images</id> |
| 124 | <phase>pre-clean</phase> |
| 125 | <goals> |
| 126 | <goal>remove</goal> |
| 127 | </goals> |
| 128 | <configuration> |
| 129 | <removeAll>true</removeAll> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 130 | <image>onap/cucumber-sdc-api-tests</image> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 131 | </configuration> |
| 132 | </execution> |
| 133 | <execution> |
| 134 | <id>generate-images</id> |
| 135 | <phase>install</phase> |
| 136 | <goals> |
| 137 | <goal>build</goal> |
| 138 | </goals> |
| 139 | </execution> |
| 140 | <execution> |
| 141 | <id>push-images</id> |
| 142 | <phase>deploy</phase> |
| 143 | <goals> |
| 144 | <goal>push</goal> |
| 145 | </goals> |
| 146 | <configuration> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 147 | <image>onap/cucumber-sdc-api-tests</image> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 148 | </configuration> |
| 149 | </execution> |
| 150 | </executions> |
| 151 | </plugin> |
| 152 | </plugins> |
| 153 | </build> |
| 154 | </profile> |
| 155 | </profiles> |
| 156 | </project> |