blob: d3dda714e77e824567b27cd8f5db28f41fce8b97 [file] [log] [blame]
ilanap86641802019-01-01 17:22:07 +02001<?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>
7 <version>1.3.0-SNAPSHOT</version>
8 </parent>
9 <artifactId>cucumber-bdd</artifactId>
10 <name>cucumber-bdd</name>
11 <groupId>org.openecomp.sdc</groupId>
12 <version>1.3.1-SNAPSHOT</version>
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>
57 <plugin>
58 <artifactId>maven-resources-plugin</artifactId>
59 <version>2.7</version>
60 <configuration>
61 </configuration>
62 </plugin>
63 </plugins>
64 <resources>
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>
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>
95 <version>${fabric8.version}</version>
96 <configuration>
97 <verbose>true</verbose>
98 <apiVersion>1.23</apiVersion>
99 <registry>nexus3.onap.org:10001</registry>
100 <authConfig>
101 <pull>
102 <username>docker</username>
103 <password>docker</password>
104 </pull>
105 </authConfig>
106 <images>
107 <!-- Build sanity image -->
108 <image>
109 <name>nfv/cucumber-sdc-api-tests</name>
110 <alias>cucumber-sdc-api-tests</alias>
111 <build>
112 <cleanup>try</cleanup>
113 <dockerFileDir>${project.build.directory}/docker_assembly</dockerFileDir>
114 <tags>
115 <tag>${docker.tag}</tag>
116 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
117 </tags>
118 </build>
119 </image>
120 </images>
121 </configuration>
122 <executions>
123 <execution>
124 <id>clean-images</id>
125 <phase>pre-clean</phase>
126 <goals>
127 <goal>remove</goal>
128 </goals>
129 <configuration>
130 <removeAll>true</removeAll>
131 <image>nfv/cucumber-sdc-api-tests</image>
132 </configuration>
133 </execution>
134 <execution>
135 <id>generate-images</id>
136 <phase>install</phase>
137 <goals>
138 <goal>build</goal>
139 </goals>
140 </execution>
141 <execution>
142 <id>push-images</id>
143 <phase>deploy</phase>
144 <goals>
145 <goal>push</goal>
146 </goals>
147 <configuration>
148 <image>nfv/cucumber-sdc-api-tests</image>
149 </configuration>
150 </execution>
151 </executions>
152 </plugin>
153 </plugins>
154 </build>
155 </profile>
156 </profiles>
157</project>