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> |
Ofir Sonsino | 145e960 | 2019-10-29 11:07:28 +0200 | [diff] [blame] | 7 | <version>1.6.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> |
Ofir Sonsino | 145e960 | 2019-10-29 11:07:28 +0200 | [diff] [blame] | 12 | <version>1.6.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> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 29 | <directory>${basedir}/node_modules</directory> |
| 30 | <includes> |
| 31 | <include>**/*</include> |
| 32 | </includes> |
| 33 | </fileset> |
| 34 | <fileset> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 35 | <directory>${basedir}/report</directory> |
| 36 | <includes> |
| 37 | <include>**/*</include> |
| 38 | </includes> |
| 39 | </fileset> |
| 40 | <fileset> |
| 41 | <directory>${basedir}/resources/downloads</directory> |
| 42 | <includes> |
| 43 | <include>**/*</include> |
| 44 | </includes> |
| 45 | </fileset> |
| 46 | <fileset> |
| 47 | <directory>${basedir}/docs</directory> |
| 48 | <includes> |
| 49 | <include>**/*</include> |
| 50 | </includes> |
| 51 | </fileset> |
| 52 | <fileset> |
| 53 | <directory>${basedir}</directory> |
| 54 | <includes> |
| 55 | <include>jenkinsConfig.json</include> |
| 56 | </includes> |
| 57 | </fileset> |
| 58 | </filesets> |
| 59 | </configuration> |
| 60 | </execution> |
| 61 | </executions> |
| 62 | </plugin> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 63 | <plugin> |
| 64 | <artifactId>maven-resources-plugin</artifactId> |
| 65 | <version>2.7</version> |
| 66 | <configuration> |
| 67 | </configuration> |
| 68 | </plugin> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 69 | <plugin> |
| 70 | <groupId>com.github.eirslett</groupId> |
| 71 | <artifactId>frontend-maven-plugin</artifactId> |
| 72 | <version>1.6</version> |
| 73 | |
| 74 | <configuration> |
| 75 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 76 | </configuration> |
| 77 | |
| 78 | <executions> |
| 79 | <execution> |
| 80 | <id>install node and npm</id> |
| 81 | <goals> |
| 82 | <goal>install-node-and-npm</goal> |
| 83 | </goals> |
| 84 | <phase>generate-resources</phase> |
| 85 | <configuration> |
| 86 | <nodeVersion>v10.15.3</nodeVersion> |
| 87 | <npmVersion>6.4.1</npmVersion> |
| 88 | </configuration> |
| 89 | </execution> |
| 90 | <execution> |
| 91 | <id>npm run install</id> |
| 92 | <goals> |
| 93 | <goal>npm</goal> |
| 94 | </goals> |
| 95 | <configuration> |
| 96 | <arguments>install</arguments> |
| 97 | </configuration> |
| 98 | </execution> |
| 99 | </executions> |
| 100 | </plugin> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 101 | </plugins> |
| 102 | <resources> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 103 | <resource> |
| 104 | <directory>${basedir}/docker</directory> |
| 105 | <targetPath>${project.build.directory}/docker_assembly</targetPath> |
| 106 | <filtering>false</filtering> |
| 107 | </resource> |
ilanap | 54ea496 | 2019-02-04 12:10:30 +0200 | [diff] [blame] | 108 | </resources> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 109 | </build> |
| 110 | <profiles> |
| 111 | <profile> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 112 | <id>dev</id> |
| 113 | <activation> |
| 114 | <activeByDefault>false</activeByDefault> |
| 115 | </activation> |
| 116 | <build> |
| 117 | <plugins> |
| 118 | <plugin> |
| 119 | <artifactId>maven-antrun-plugin</artifactId> |
| 120 | <executions> |
| 121 | <execution> |
| 122 | <id>create-reporting-folders</id> |
| 123 | <phase>initialize</phase> |
| 124 | <configuration> |
| 125 | <tasks> |
| 126 | <echo message="Generate reports and downloads folders"/> |
| 127 | <mkdir dir="${basedir}/report"/> |
| 128 | <mkdir dir="${basedir}/resources/downloads"/> |
| 129 | </tasks> |
| 130 | </configuration> |
| 131 | </execution> |
| 132 | </executions> |
| 133 | </plugin> |
| 134 | <plugin> |
| 135 | <groupId>com.github.eirslett</groupId> |
| 136 | <artifactId>frontend-maven-plugin</artifactId> |
| 137 | <version>1.6</version> |
| 138 | |
| 139 | <configuration> |
| 140 | <workingDirectory>${project.basedir}</workingDirectory> |
| 141 | <installDirectory>${project.parent.parent.basedir}</installDirectory> |
| 142 | </configuration> |
| 143 | |
| 144 | <executions> |
| 145 | |
| 146 | <execution> |
| 147 | <id>npm run install</id> |
| 148 | <goals> |
| 149 | <goal>npm</goal> |
| 150 | </goals> |
| 151 | <configuration> |
| 152 | <arguments>install</arguments> |
| 153 | </configuration> |
| 154 | </execution> |
| 155 | |
| 156 | <execution> |
| 157 | <id>npm run cucumber test</id> |
| 158 | <goals> |
| 159 | <goal>npm</goal> |
| 160 | </goals> |
| 161 | <configuration> |
| 162 | <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| 163 | <arguments>run test-and-report</arguments> |
| 164 | </configuration> |
| 165 | <phase>test</phase> |
| 166 | </execution> |
| 167 | |
| 168 | <execution> |
| 169 | <id>npm run documentation</id> |
| 170 | <goals> |
| 171 | <goal>npm</goal> |
| 172 | </goals> |
| 173 | <configuration> |
| 174 | <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven> |
| 175 | <arguments>run cucumber-docs</arguments> |
| 176 | </configuration> |
| 177 | <phase>install</phase> |
| 178 | </execution> |
| 179 | |
| 180 | </executions> |
| 181 | </plugin> |
| 182 | </plugins> |
| 183 | </build> |
| 184 | </profile> |
| 185 | <profile> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 186 | <id>docker</id> |
| 187 | <activation> |
| 188 | <activeByDefault>false</activeByDefault> |
| 189 | </activation> |
| 190 | <build> |
| 191 | <plugins> |
| 192 | <plugin> |
ilanap | 061ca93 | 2019-08-04 10:16:33 +0300 | [diff] [blame] | 193 | <artifactId>maven-resources-plugin</artifactId> |
| 194 | <version>3.0.2</version> |
| 195 | <executions> |
| 196 | <execution> |
| 197 | <id>copy-resources</id> |
| 198 | <phase>package</phase> |
| 199 | <goals> |
| 200 | <goal>copy-resources</goal> |
| 201 | </goals> |
| 202 | <configuration> |
| 203 | <outputDirectory>${project.build.directory}/docker_assembly/cucumber</outputDirectory> |
| 204 | <resources> |
| 205 | <resource> |
| 206 | <directory>${basedir}</directory> |
| 207 | <includes> |
| 208 | <include>features/**/*</include> |
| 209 | <include>stepDefinitions/**/*</include> |
| 210 | <include>plugins/**/*</include> |
| 211 | <include>resources/**/*</include> |
| 212 | <include>node_modules/**/*</include> |
| 213 | <include>cucumber-common/**/*</include> |
| 214 | <include>*.js*</include> |
| 215 | </includes> |
| 216 | <filtering>false</filtering> |
| 217 | </resource> |
| 218 | </resources> |
| 219 | </configuration> |
| 220 | </execution> |
| 221 | </executions> |
| 222 | </plugin> |
| 223 | <plugin> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 224 | <groupId>io.fabric8</groupId> |
| 225 | <artifactId>docker-maven-plugin</artifactId> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 226 | <configuration> |
| 227 | <verbose>true</verbose> |
| 228 | <apiVersion>1.23</apiVersion> |
| 229 | <registry>nexus3.onap.org:10001</registry> |
| 230 | <authConfig> |
| 231 | <pull> |
| 232 | <username>docker</username> |
| 233 | <password>docker</password> |
| 234 | </pull> |
| 235 | </authConfig> |
| 236 | <images> |
| 237 | <!-- Build sanity image --> |
| 238 | <image> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 239 | <name>onap/cucumber-sdc-api-tests</name> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 240 | <alias>cucumber-sdc-api-tests</alias> |
| 241 | <build> |
| 242 | <cleanup>try</cleanup> |
| 243 | <dockerFileDir>${project.build.directory}/docker_assembly</dockerFileDir> |
| 244 | <tags> |
| 245 | <tag>${docker.tag}</tag> |
| 246 | <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> |
| 247 | </tags> |
| 248 | </build> |
| 249 | </image> |
| 250 | </images> |
| 251 | </configuration> |
| 252 | <executions> |
| 253 | <execution> |
| 254 | <id>clean-images</id> |
| 255 | <phase>pre-clean</phase> |
| 256 | <goals> |
| 257 | <goal>remove</goal> |
| 258 | </goals> |
| 259 | <configuration> |
| 260 | <removeAll>true</removeAll> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 261 | <image>onap/cucumber-sdc-api-tests</image> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 262 | </configuration> |
| 263 | </execution> |
| 264 | <execution> |
| 265 | <id>generate-images</id> |
| 266 | <phase>install</phase> |
| 267 | <goals> |
| 268 | <goal>build</goal> |
| 269 | </goals> |
| 270 | </execution> |
| 271 | <execution> |
| 272 | <id>push-images</id> |
| 273 | <phase>deploy</phase> |
| 274 | <goals> |
| 275 | <goal>push</goal> |
| 276 | </goals> |
| 277 | <configuration> |
ilanap | 31742c9 | 2019-01-03 14:36:38 +0200 | [diff] [blame] | 278 | <image>onap/cucumber-sdc-api-tests</image> |
ilanap | 8664180 | 2019-01-01 17:22:07 +0200 | [diff] [blame] | 279 | </configuration> |
| 280 | </execution> |
| 281 | </executions> |
| 282 | </plugin> |
| 283 | </plugins> |
| 284 | </build> |
| 285 | </profile> |
| 286 | </profiles> |
| 287 | </project> |