forked from depositsolutions/jenkins-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
125 lines (118 loc) · 3.96 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
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>info.maaskant</groupId>
<artifactId>auto-jenkins</artifactId>
<version>latest</version>
<packaging>jar</packaging>
<properties>
<dockerImageName>scheleaap/jenkins-automation</dockerImageName>
<!-- If a proxy is needed while building the Jenkins, configure it here in the form of "http://1.2.3.4:3128/". To build locally, use the 'local' profile with "-P local". -->
<http.proxy></http.proxy>
<no.proxy>localhost,127.0.0.0/8,127.0.0.1</no.proxy>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<scm>
<developerConnection>scm:git:[email protected]:scheleaap/jenkins-automation.git</developerConnection>
</scm>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>docker/**</exclude>
</excludes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.10</version>
<configuration>
<contextDirectory>src/main/resources/docker</contextDirectory>
<repository>${dockerImageName}</repository>
<buildArgs>
<httpProxy>${http.proxy}</httpProxy>
<noProxy>${no.proxy}</noProxy>
</buildArgs>
</configuration>
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<!-- This is necessary to prevent the plugin from trying to upload two different docker-info.jar files
with the same name. The one generated during this phase is not required. See
https://github.com/spotify/dockerfile-maven/issues/11 -->
<classifier>docker-info-tmp</classifier>
</configuration>
</execution>
<execution>
<id>tag-image</id>
<phase>install</phase>
<goals>
<goal>tag</goal>
</goals>
<configuration>
<tag>${project.version}</tag>
</configuration>
</execution>
<execution>
<id>push-image</id>
<phase>deploy</phase>
<goals>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>local</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<http.proxy></http.proxy>
<no.proxy></no.proxy>
</properties>
</profile>
</profiles>
</project>