File tree 3 files changed +37
-5
lines changed
3 files changed +37
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,12 @@ pipeline {
29
29
}
30
30
}
31
31
options { timeout(time : 30 , unit : ' MINUTES' ) }
32
+ environment {
33
+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
34
+ }
32
35
steps {
33
36
sh ' rm -rf ?'
34
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Dsort -U -B'
37
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list test -Dsort -U -B'
35
38
}
36
39
}
37
40
}
@@ -58,7 +61,7 @@ pipeline {
58
61
59
62
steps {
60
63
sh ' rm -rf ?'
61
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
64
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml - Pci,artifactory ' +
62
65
' -Dartifactory.server=https://repo.spring.io ' +
63
66
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
64
67
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
@@ -86,7 +89,7 @@ pipeline {
86
89
}
87
90
88
91
steps {
89
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
92
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml - Pci,distribute ' +
90
93
' -Dartifactory.server=https://repo.spring.io ' +
91
94
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
92
95
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
Original file line number Diff line number Diff line change 179
179
APPENDIX: How to apply the Apache License to your work.
180
180
181
181
To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[] "
182
+ boilerplate notice, with the fields enclosed by brackets "{} "
183
183
replaced with your own identifying information. (Don't include
184
184
the brackets!) The text should be enclosed in the appropriate
185
185
comment syntax for the file format. We also recommend that a
186
186
file or class name and description of purpose be included on the
187
187
same "printed page" as the copyright notice for easier
188
188
identification within third-party archives.
189
189
190
- Copyright [ yyyy] [ name of copyright owner]
190
+ Copyright { yyyy} { name of copyright owner}
191
191
192
192
Licensed under the Apache License, Version 2.0 (the "License");
193
193
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
2
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0
4
+ https://maven.apache.org/xsd/settings-1.0.0.xsd" >
5
+
6
+ <servers >
7
+ <server >
8
+ <id >spring-plugins-release</id >
9
+ <username >${env.ARTIFACTORY_USR}</username >
10
+ <password >${env.ARTIFACTORY_PSW}</password >
11
+ </server >
12
+ <server >
13
+ <id >spring-libs-snapshot</id >
14
+ <username >${env.ARTIFACTORY_USR}</username >
15
+ <password >${env.ARTIFACTORY_PSW}</password >
16
+ </server >
17
+ <server >
18
+ <id >spring-libs-milestone</id >
19
+ <username >${env.ARTIFACTORY_USR}</username >
20
+ <password >${env.ARTIFACTORY_PSW}</password >
21
+ </server >
22
+ <server >
23
+ <id >spring-libs-release</id >
24
+ <username >${env.ARTIFACTORY_USR}</username >
25
+ <password >${env.ARTIFACTORY_PSW}</password >
26
+ </server >
27
+ </servers >
28
+
29
+ </settings >
You can’t perform that action at this time.
0 commit comments