blob: 68165528cf5253ed6a4a3e4f615eb533520a5056 [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>
Ofir Sonsino09d87892020-03-12 20:52:42 +02009 <version>1.7.0-SNAPSHOT</version>
ilanap86641802019-01-01 17:22:07 +020010 </parent>
11 <artifactId>cucumber-bdd</artifactId>
12 <name>cucumber-bdd</name>
Ofir Sonsino09d87892020-03-12 20:52:42 +020013 <version>1.7.0-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>
sebdetb988cb62020-09-25 15:48:10 +0200245 <tag>latest</tag>
vasrazf1f5a352019-11-26 17:20:27 +0000246 <tag>
247 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
248 </tag>
sebdetb988cb62020-09-25 15:48:10 +0200249 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
ilanap86641802019-01-01 17:22:07 +0200250 </tags>
251 </build>
252 </image>
253 </images>
254 </configuration>
255 <executions>
256 <execution>
257 <id>clean-images</id>
258 <phase>pre-clean</phase>
259 <goals>
260 <goal>remove</goal>
261 </goals>
262 <configuration>
263 <removeAll>true</removeAll>
vasrazbbe2a932019-12-05 13:53:51 +0000264 <image>onap/cucumber-sdc-api-tests</image>
ilanap86641802019-01-01 17:22:07 +0200265 </configuration>
266 </execution>
267 <execution>
268 <id>generate-images</id>
269 <phase>install</phase>
270 <goals>
271 <goal>build</goal>
272 </goals>
273 </execution>
274 <execution>
275 <id>push-images</id>
276 <phase>deploy</phase>
277 <goals>
278 <goal>push</goal>
279 </goals>
280 <configuration>
vasrazbbe2a932019-12-05 13:53:51 +0000281 <image>onap/cucumber-sdc-api-tests</image>
ilanap86641802019-01-01 17:22:07 +0200282 </configuration>
283 </execution>
284 </executions>
285 </plugin>
286 </plugins>
287 </build>
288 </profile>
289 </profiles>
290</project>