blob: b1660f61588bbab708fad69fcc56d02767f5e084 [file] [log] [blame]
ayalaben3fb47c42018-06-24 10:42:43 +03001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5
6 <groupId>org.openecomp.sdc</groupId>
7 <artifactId>workflow-cucumber</artifactId>
8 <name>cucumber-report</name>
talig89d869e2019-11-25 09:32:56 +02009 <version>1.6.0-SNAPSHOT</version>
ayalaben3fb47c42018-06-24 10:42:43 +030010
ayalaben3fb47c42018-06-24 10:42:43 +030011 <build>
12 <plugins>
13 <plugin>
14 <artifactId>maven-clean-plugin</artifactId>
15 <version>2.6.1</version>
16 <executions>
17 <execution>
18 <id>clean.dist.folder</id>
19 <phase>clean</phase>
20 <goals>
21 <goal>clean</goal>
22 </goals>
23 <configuration>
24 <filesets>
25 <fileset>
26 <directory>${basedir}/report</directory>
27 <includes>
28 <include>**/*</include>
29 </includes>
30 </fileset>
31 <fileset>
32 <directory>${basedir}/resources/downloads</directory>
33 <includes>
34 <include>**/*</include>
35 </includes>
36 </fileset>
37 <fileset>
38 <directory>${basedir}/docs</directory>
39 <includes>
40 <include>**/*</include>
41 </includes>
42 </fileset>
43 <fileset>
44 <directory>${basedir}</directory>
45 <includes>
46 <include>jenkinsConfig.json</include>
47 </includes>
48 </fileset>
49
50 </filesets>
51 </configuration>
52 </execution>
53 </executions>
54 </plugin>
55
56
57 <plugin>
58 <artifactId>maven-antrun-plugin</artifactId>
59 <executions>
60 <execution>
61 <id>create-reporting-folders</id>
62 <phase>generate-sources</phase>
63 <configuration>
64 <tasks>
65 <echo message="Generate reports and downloads folders"/>
66 <mkdir dir="${basedir}/report"/>
67 <mkdir dir="${basedir}/resources/downloads"/>
68 </tasks>
69 </configuration>
70 <goals>
71 <goal>run</goal>
72 </goals>
73 </execution>
74 </executions>
75 </plugin>
76
77 <!-- ============================================= -->
78 <!-- Build the UI module node code -->
79 <!-- ============================================= -->
80 <plugin>
81 <groupId>com.github.eirslett</groupId>
82 <artifactId>frontend-maven-plugin</artifactId>
ilanap0158e852019-12-03 14:31:09 +020083 <version>1.8.0</version>
ayalaben3fb47c42018-06-24 10:42:43 +030084
85 <configuration>
86 <installDirectory>${project.parent.parent.basedir}</installDirectory>
87 </configuration>
88
89 <executions>
90
91 <execution>
92 <id>install node and yarn</id>
93 <goals>
94 <goal>install-node-and-yarn</goal>
95 </goals>
96 <configuration>
ilanap0158e852019-12-03 14:31:09 +020097 <nodeVersion>v10.17.0</nodeVersion>
98 <yarnVersion>v1.19.1</yarnVersion>
ayalaben3fb47c42018-06-24 10:42:43 +030099 </configuration>
100 </execution>
101
102 <execution>
103 <id>yarn run install</id>
104 <goals>
105 <goal>yarn</goal>
106 </goals>
107 <configuration>
108 <arguments>install</arguments>
109 </configuration>
110 </execution>
111 <execution>
112 <id>yarn run cucumber docs</id>
113 <goals>
114 <goal>yarn</goal>
115 </goals>
116 <configuration>
117 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
118 <arguments>run cucumber-docs</arguments>
119 </configuration>
120 </execution>
121
122 <execution>
123 <id>yarn run cucumber test</id>
124 <goals>
125 <goal>yarn</goal>
126 </goals>
127 <configuration>
128 <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
129 <arguments>run test-and-report</arguments>
130 </configuration>
131 <phase>test</phase>
132 </execution>
133
134
135 </executions>
136 </plugin>
137
138 <plugin>
139 <artifactId>maven-resources-plugin</artifactId>
140 <version>2.6</version>
141 <executions>
142 <execution>
143 <id>copy-config</id>
144 <phase>validate</phase>
145 <goals>
146 <goal>copy-resources</goal>
147 </goals>
148 <configuration>
149 <outputDirectory>${basedir}</outputDirectory>
150 <resources>
151 <resource>
152 <directory>${basedir}/resources</directory>
153 <includes>
154 <include>jenkinsConfig.json</include>
155 </includes>
156 <filtering>true</filtering>
157 </resource>
158 </resources>
159 </configuration>
160 </execution>
161 </executions>
162 </plugin>
163
164 </plugins>
165 </build>
166
167</project>