forked from Praqma/pretested-integration-plugin
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpom.xml
209 lines (185 loc) · 7.9 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>3.56</version>
<relativePath />
</parent>
<name>Pretested Integration Plugin</name>
<artifactId>pretested-integration</artifactId>
<description>Enables pretested integration as Git SCM extension.</description>
<url>https://wiki.jenkins.io/display/JENKINS/Pretested+Integration+Plugin</url>
<!--
Using the buildnumber-maven-plugin and the maven-hpi-plugin configuration below
the plugin will show up with at version number like:
major.minor.patch-SNAPSHOT-gitSHA (dev builds)
major.minor.patch-gitSHA (releases)
You can make a beta or alpha release by putting in beta or alpha in the pom according to
https://jenkins.io/blog/2013/09/23/experimental-plugins-update-center/
Those updates will only be visible to people who have enabled the experimental update center.
Example of a beta: 3.0.0-beta.1-SNAPSHOT
-->
<version>3.1.2-SNAPSHOT</version>
<packaging>hpi</packaging>
<properties>
<jenkins.version>2.19.4</jenkins.version>
<jenkins-test-harness.version>2.60</jenkins-test-harness.version>
<java.level>8</java.level>
</properties>
<developers>
<developer>
<id>praqma</id>
<name>Praqma Support</name>
<email>[email protected]</email>
</developer>
</developers>
<!-- Use the Jenkins CI repositories to get artifacts and deliver artifacts.
Released artifact will to repository.
Plugin repos will be resolved artifacts from also, eg. hpi plugin and parent pom file.
-->
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</repository>
<repository>
<id>jgit-repository</id>
<url>https://repo.eclipse.org/content/groups/releases/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>https://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
<!-- Setting SCM to git. -->
<!-- Using Praqma's github repo as developer connection - this mean we must manual push tags and commits to the
Jenkins CI github repo after an release. We do this to ensure no one sneaks code into our repo. -->
<scm>
<connection>scm:git:git://github.com/Praqma/${project.artifactId}-plugin.git</connection>
<developerConnection>scm:git:[email protected]:Praqma/${project.artifactId}-plugin.git</developerConnection>
<url>https://github.com/Praqma/${project.artifactId}-plugin</url>
<tag>${scmTag}</tag>
</scm>
<build>
<plugins>
<!--
This produces the hpi file for Jenkins plugins.
We reconfigure it here to add version information and a newer version
It would have been nice if we could signal dirty workspaces on the version
but buildnumber-maven-plugin does not support it. Neither does one like it:
https://github.com/code54/buildversion-plugin
-->
<plugin>
<groupId>org.jenkins-ci.tools</groupId>
<artifactId>maven-hpi-plugin</artifactId>
<configuration>
<!-- Compatible since is used to warn the user that this new version of the plugin is not compatible
with earlier version than the one we mention below.
https://wiki.jenkins.io/display/JENKINS/Marking+a+new+plugin+version+as+incompatible+with+older+versions
-->
<compatibleSinceVersion>3.0.0</compatibleSinceVersion>
</configuration>
</plugin>
<!--
Allows integration tests to clean test environment before build fails
use 'mvn verify' to run integration tests to allow 'post-integration-test' phase
to run so it can tear down integration test environment
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Binds automatically surefire:test goal to the test phase and generates
.txt and .xml reports for test results.
Reports can later be converted to html reports by the 'maven-surefire-report-plugin'
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<excludes>
<exclude>**/CredentialsTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-aggregator</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>2.1.13</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ssh-credentials</artifactId>
<version>1.13</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>3.5.1</version>
</dependency>
<!-- Added because of GHI 103 -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>token-macro</artifactId>
<version>1.12.1</version>
<optional>true</optional>
</dependency>
<!--
Added because of GHI 103. Conflicts with MultiJob. We exclude the conditional buildstep because MultiJob
provides a newer version we can use.
-->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>parameterized-trigger</artifactId>
<version>2.35.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>job-dsl</artifactId>
<version>1.64</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>matrix-project</artifactId>
<version>1.13</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.code.findbugs/annotations -->
<!-- Temparily added this because of issue GHI 103 -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
</project>