blob: 9c2b93e6d5f3059f607a68d0501c217fbef25918 [file] [log] [blame]
ilanap86641802019-01-01 17:22:07 +02001<?xml version="1.0"?>
vasrazf1f5a352019-11-26 17:20:27 +00002<project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
ilanap86641802019-01-01 17:22:07 +02005 <modelVersion>4.0.0</modelVersion>
6 <parent>
7 <groupId>org.openecomp.sdc</groupId>
8 <artifactId>sdc-main</artifactId>
shrek200065f0aa32020-02-02 10:40:15 +02009 <version>1.6.1-SNAPSHOT</version>
ilanap86641802019-01-01 17:22:07 +020010 </parent>
11 <artifactId>cucumber-bdd</artifactId>
12 <name>cucumber-bdd</name>
shrek200065f0aa32020-02-02 10:40:15 +020013 <version>1.6.1-SNAPSHOT</version>
ilanap86641802019-01-01 17:22:07 +020014 <packaging>jar</packaging>
15 <build>
16 <plugins>
17 <plugin>
18 <artifactId>maven-clean-plugin</artifactId>
19 <version>2.6.1</version>
20 <executions>
21 <execution>
22 <id>clean.dist.folder</id>
23 <phase>clean</phase>
24 <goals>
25 <goal>clean</goal>
26 </goals>
27 <configuration>
28 <filesets>
29 <fileset>
ilanap061ca932019-08-04 10:16:33 +030030 <directory>${basedir}/node_modules</directory>
31 <includes>
32 <include>**/*</include>
33 </includes>
34 </fileset>
35 <fileset>
ilanap86641802019-01-01 17:22:07 +020036 <directory>${basedir}/report</directory>
37 <includes>
38 <include>**/*</include>
39 </includes>
40 </fileset>
41 <fileset>
42 <directory>${basedir}/resources/downloads</directory>
43 <includes>
44 <include>**/*</include>
45 </includes>
46 </fileset>
47 <fileset>
48 <directory>${basedir}/docs</directory>
49 <includes>
50 <include>**/*</include>
51 </includes>
52 </fileset>
53 <fileset>
54 <directory>${basedir}</directory>
55 <includes>
56 <include>jenkinsConfig.json</include>
57 </includes>
58 </fileset>
59 </filesets>
60 </configuration>
61 </execution>
62 </executions>
63 </plugin>
ilanap54ea4962019-02-04 12:10:30 +020064 <plugin>
65 <artifactId>maven-resources-plugin</artifactId>
66 <version>2.7</version>
67 <configuration>
68 </configuration>
69 </plugin>
ilanap061ca932019-08-04 10:16:33 +030070 <plugin>
71 <groupId>com.github.eirslett</groupId>
72 <artifactId>frontend-maven-plugin</artifactId>
ilanap061ca932019-08-04 10:16:33 +030073
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>
vasrazf1f5a352019-11-26 17:20:27 +000086 <nodeVersion>v10.17.0</nodeVersion>
87 <npmVersion>6.11.3</npmVersion>
ilanap061ca932019-08-04 10:16:33 +030088 </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>
ilanap86641802019-01-01 17:22:07 +0200101 </plugins>
102 <resources>
ilanap54ea4962019-02-04 12:10:30 +0200103 <resource>
104 <directory>${basedir}/docker</directory>
105 <targetPath>${project.build.directory}/docker_assembly</targetPath>
106 <filtering>false</filtering>
107 </resource>
ilanap54ea4962019-02-04 12:10:30 +0200108 </resources>
ilanap86641802019-01-01 17:22:07 +0200109 </build>
110 <profiles>
111 <profile>
ilanap061ca932019-08-04 10:16:33 +0300112 <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>
ilanap061ca932019-08-04 10:16:33 +0300137
138 <configuration>
139 <workingDirectory>${project.basedir}</workingDirectory>
140 <installDirectory>${project.parent.parent.basedir}</installDirectory>
141 </configuration>
142
143 <executions>
144
145 <execution>
146 <id>npm run install</id>
147 <goals>
148 <goal>npm</goal>
149 </goals>
150 <configuration>
151 <arguments>install</arguments>
152 </configuration>
153 </execution>
154
155 <execution>
156 <id>npm run cucumber test</id>
157 <goals>
158 <goal>npm</goal>
159 </goals>
160 <configuration>
161 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
162 <arguments>run test-and-report</arguments>
163 </configuration>
164 <phase>test</phase>
165 </execution>
166
167 <execution>
168 <id>npm run documentation</id>
169 <goals>
170 <goal>npm</goal>
171 </goals>
172 <configuration>
173 <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
174 <arguments>run cucumber-docs</arguments>
175 </configuration>
176 <phase>install</phase>
177 </execution>
178
179 </executions>
180 </plugin>
181 </plugins>
182 </build>
183 </profile>
184 <profile>
ilanap86641802019-01-01 17:22:07 +0200185 <id>docker</id>
186 <activation>
187 <activeByDefault>false</activeByDefault>
188 </activation>
189 <build>
190 <plugins>
191 <plugin>
ilanap061ca932019-08-04 10:16:33 +0300192 <artifactId>maven-resources-plugin</artifactId>
193 <version>3.0.2</version>
194 <executions>
195 <execution>
196 <id>copy-resources</id>
197 <phase>package</phase>
198 <goals>
199 <goal>copy-resources</goal>
200 </goals>
201 <configuration>
vasrazf1f5a352019-11-26 17:20:27 +0000202 <outputDirectory>${project.build.directory}/docker_assembly/cucumber
203 </outputDirectory>
ilanap061ca932019-08-04 10:16:33 +0300204 <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>
ilanap86641802019-01-01 17:22:07 +0200224 <groupId>io.fabric8</groupId>
225 <artifactId>docker-maven-plugin</artifactId>
ilanap86641802019-01-01 17:22:07 +0200226 <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>
ilanap31742c92019-01-03 14:36:38 +0200239 <name>onap/cucumber-sdc-api-tests</name>
ilanap86641802019-01-01 17:22:07 +0200240 <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>
vasrazf1f5a352019-11-26 17:20:27 +0000246 <tag>
247 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
248 </tag>
ilanap86641802019-01-01 17:22:07 +0200249 </tags>
250 </build>
251 </image>
252 </images>
253 </configuration>
254 <executions>
255 <execution>
256 <id>clean-images</id>
257 <phase>pre-clean</phase>
258 <goals>
259 <goal>remove</goal>
260 </goals>
261 <configuration>
262 <removeAll>true</removeAll>
vasrazbbe2a932019-12-05 13:53:51 +0000263 <image>onap/cucumber-sdc-api-tests</image>
ilanap86641802019-01-01 17:22:07 +0200264 </configuration>
265 </execution>
266 <execution>
267 <id>generate-images</id>
268 <phase>install</phase>
269 <goals>
270 <goal>build</goal>
271 </goals>
272 </execution>
273 <execution>
274 <id>push-images</id>
275 <phase>deploy</phase>
276 <goals>
277 <goal>push</goal>
278 </goals>
279 <configuration>
vasrazbbe2a932019-12-05 13:53:51 +0000280 <image>onap/cucumber-sdc-api-tests</image>
ilanap86641802019-01-01 17:22:07 +0200281 </configuration>
282 </execution>
283 </executions>
284 </plugin>
285 </plugins>
286 </build>
287 </profile>
288 </profiles>
289</project>