Commit c1769d29a29a55ba8a1834782099e0ddc07fd48c
1 parent
f5c356b7
Exists in
master
add jenkins profile on pom.xml
Showing
1 changed file
with
31 additions
and
0 deletions
Show diff stats
pom.xml
... | ... | @@ -13,6 +13,37 @@ |
13 | 13 | <scope>compile</scope> |
14 | 14 | </dependency> |
15 | 15 | </dependencies> |
16 | + <profiles> | |
17 | + <profile> | |
18 | + <id>jenkins</id> | |
19 | + <!-- This profile is activated by the "-P jenkins" switch when run on the | |
20 | + build server by Jenkins (continuous integration) --> | |
21 | + <build> | |
22 | + <plugins> | |
23 | + <!-- Jenkins should only build -SNAPSHOTs --> | |
24 | + <plugin> | |
25 | + <artifactId>maven-enforcer-plugin</artifactId> | |
26 | + <executions> | |
27 | + <execution> | |
28 | + <goals> | |
29 | + <goal>enforce</goal> | |
30 | + </goals> | |
31 | + <configuration> | |
32 | + <rules> | |
33 | + <evaluateBeanshell> | |
34 | + <condition>"${project.version}".endsWith("-SNAPSHOT")</condition> | |
35 | + <message>Jenkins should only build -SNAPSHOT versions</message> | |
36 | + </evaluateBeanshell> | |
37 | + </rules> | |
38 | + <fail>true</fail> | |
39 | + </configuration> | |
40 | + </execution> | |
41 | + </executions> | |
42 | + </plugin> | |
43 | + </plugins> | |
44 | + </build> | |
45 | + </profile> | |
46 | + </profiles> | |
16 | 47 | <repositories> |
17 | 48 | <repository> |
18 | 49 | <id>IRAP-NEXUS</id> | ... | ... |