Merge "Remove unnecessary check for pytest.skip"
[vvp/validation-scripts.git] / pom.xml
1 <?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/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.onap.oparent</groupId>
6     <artifactId>oparent</artifactId>
7     <version>2.1.0</version>
8   </parent>
9
10   <groupId>org.onap.vvp.validation-scripts</groupId>
11   <artifactId>validation-scripts</artifactId>
12   <packaging>pom</packaging>
13   <version>5.0.1</version>
14   <name>vvp-validation-scripts</name>
15
16   <properties>
17         <!--nexus-->
18         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
19         <sitePath>/content/sites/site/org/onap/vvp/${project.artifactId}/${project.version}</sitePath>
20         <!--maven-->
21         <timestamp>${maven.build.timestamp}</timestamp>
22         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
23         <!--docker-->
24         <docker.tag>${project.version}-${timestamp}</docker.tag>
25         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
26         <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
27         <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
28         <!--sonar-->
29         <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
30         <sonar.sources>.</sonar.sources>
31         <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
32         <sonar.language>py</sonar.language>
33         <sonar.pluginName>python</sonar.pluginName>
34         <sonar.inclusions>ice_validator/**.py</sonar.inclusions>
35   </properties>
36
37   <build>
38     <pluginManagement>
39       <plugins>
40         <plugin>
41             <groupId>org.codehaus.mojo</groupId>
42             <artifactId>exec-maven-plugin</artifactId>
43             <version>1.2.1</version>
44             <configuration>
45               <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
46             </configuration>
47         </plugin>
48       </plugins>
49     </pluginManagement>
50     <plugins>
51         <plugin>
52             <groupId>org.sonatype.plugins</groupId>
53             <artifactId>nexus-staging-maven-plugin</artifactId>
54             <version>1.6.7</version>
55             <extensions>true</extensions>
56             <configuration>
57                 <nexusUrl>${onap.nexus.url}</nexusUrl>
58                 <stagingProfileId>176c31dfe190a</stagingProfileId>
59                 <serverId>ecomp-staging</serverId>
60             </configuration>
61         </plugin>
62         <plugin>
63             <groupId>io.fabric8</groupId>
64             <artifactId>docker-maven-plugin</artifactId>
65             <version>0.19.0</version>
66             <configuration>
67                 <pullRegistry>${docker.pull.registry}</pullRegistry>
68                 <pushRegistry>${docker.push.registry}</pushRegistry>
69                 <images>
70                     <image>
71                         <name>onap/vvp/validation-scripts</name>
72                         <alias>validation-scripts</alias>
73                         <build>
74                             <cleanup>true</cleanup>
75                             <tags>
76                                 <tag>${docker.tag}</tag>
77                                 <tag>${docker.latest.tag}</tag>
78                             </tags>
79                             <dockerFileDir>${project.basedir}</dockerFileDir>
80                         </build>
81                     </image>
82                 </images>
83             </configuration>
84             <executions>
85                 <execution>
86                     <id>clean-images</id>
87                     <phase>pre-clean</phase>
88                     <goals>
89                         <goal>remove</goal>
90                     </goals>
91                     <configuration>
92                         <removeAll>true</removeAll>
93                     </configuration>
94                 </execution>
95
96                 <execution>
97                     <id>generate-images</id>
98                     <phase>package</phase>
99                     <goals>
100                         <goal>build</goal>
101                     </goals>
102                 </execution>
103
104                 <execution>
105                     <id>push-images</id>
106                     <phase>deploy</phase>
107                     <goals>
108                         <goal>build</goal>
109                         <goal>push</goal>
110                     </goals>
111                     <configuration>
112                         <image>onap/vvp/validation-scripts</image>
113                     </configuration>
114                 </execution>
115             </executions>
116         </plugin>
117         <plugin>
118           <groupId>org.codehaus.mojo</groupId>
119           <artifactId>exec-maven-plugin</artifactId>
120           <version>1.2.1</version>
121           <executions>
122             <execution>
123               <id>test script</id>
124               <phase>test</phase>
125               <goals>
126                 <goal>exec</goal>
127               </goals>
128               <configuration>
129                 <arguments>
130                   <argument>__</argument>
131                   <argument>test</argument>
132                 </arguments>
133               </configuration>
134             </execution>
135           </executions>
136         </plugin>
137     </plugins>
138   </build>
139   <distributionManagement>
140       <site>
141           <id>ecomp-site</id>
142           <url>dav:${onap.nexus.url}${sitePath}</url>
143       </site>
144   </distributionManagement>
145   <repositories>
146     <repository>
147         <id>ecomp-releases</id>
148           <name>Release Repository</name>
149           <url>${onap.nexus.url}/content/repositories/releases/</url>
150     </repository>
151     <repository>
152           <id>ecomp-snapshots</id>
153           <name>Snapshot Repository</name>
154           <url>${onap.nexus.url}/content/repositories/snapshots/</url>
155     </repository>
156     <repository>
157         <id>ecomp-staging</id>
158         <name>Staging Repository</name>
159         <url>${onap.nexus.url}/content/repositories/staging/</url>
160     </repository>
161   </repositories>
162 </project>