blob: 8f84f97604d2b8a3300bf915e11bb2504abaa2dc [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>
ilanap420afa92019-01-27 11:39:07 +02007 <version>1.4.0-SNAPSHOT</version>
ilanap86641802019-01-01 17:22:07 +02008 </parent>
9 <artifactId>cucumber-bdd</artifactId>
10 <name>cucumber-bdd</name>
11 <groupId>org.openecomp.sdc</groupId>
ilanape53320e2019-02-04 14:15:11 +020012 <version>1.4.0-SNAPSHOT</version>
ilanap86641802019-01-01 17:22:07 +020013 <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>
ilanap54ea4962019-02-04 12:10:30 +020057 <plugin>
58 <artifactId>maven-resources-plugin</artifactId>
59 <version>2.7</version>
60 <configuration>
61 </configuration>
62 </plugin>
ilanap86641802019-01-01 17:22:07 +020063 </plugins>
64 <resources>
ilanap54ea4962019-02-04 12:10:30 +020065 <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>
ilanap86641802019-01-01 17:22:07 +020083 </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>
ilanap86641802019-01-01 17:22:07 +020095 <configuration>
96 <verbose>true</verbose>
97 <apiVersion>1.23</apiVersion>
98 <registry>nexus3.onap.org:10001</registry>
99 <authConfig>
100 <pull>
101 <username>docker</username>
102 <password>docker</password>
103 </pull>
104 </authConfig>
105 <images>
106 <!-- Build sanity image -->
107 <image>
ilanap31742c92019-01-03 14:36:38 +0200108 <name>onap/cucumber-sdc-api-tests</name>
ilanap86641802019-01-01 17:22:07 +0200109 <alias>cucumber-sdc-api-tests</alias>
110 <build>
111 <cleanup>try</cleanup>
112 <dockerFileDir>${project.build.directory}/docker_assembly</dockerFileDir>
113 <tags>
114 <tag>${docker.tag}</tag>
115 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
116 </tags>
117 </build>
118 </image>
119 </images>
120 </configuration>
121 <executions>
122 <execution>
123 <id>clean-images</id>
124 <phase>pre-clean</phase>
125 <goals>
126 <goal>remove</goal>
127 </goals>
128 <configuration>
129 <removeAll>true</removeAll>
ilanap31742c92019-01-03 14:36:38 +0200130 <image>onap/cucumber-sdc-api-tests</image>
ilanap86641802019-01-01 17:22:07 +0200131 </configuration>
132 </execution>
133 <execution>
134 <id>generate-images</id>
135 <phase>install</phase>
136 <goals>
137 <goal>build</goal>
138 </goals>
139 </execution>
140 <execution>
141 <id>push-images</id>
142 <phase>deploy</phase>
143 <goals>
144 <goal>push</goal>
145 </goals>
146 <configuration>
ilanap31742c92019-01-03 14:36:38 +0200147 <image>onap/cucumber-sdc-api-tests</image>
ilanap86641802019-01-01 17:22:07 +0200148 </configuration>
149 </execution>
150 </executions>
151 </plugin>
152 </plugins>
153 </build>
154 </profile>
155 </profiles>
156</project>