Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit d3f6ae0

Browse files
committed
Authentication with artifactory to fetch artifacts.
1 parent 1f64203 commit d3f6ae0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Jenkinsfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ pipeline {
3232
args '-v $HOME/.m2:/tmp/jenkins-home/.m2'
3333
}
3434
}
35+
environment {
36+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
37+
}
3538
steps {
3639
sh "PROFILE=convergence ci/test.sh"
3740
}
@@ -45,6 +48,9 @@ pipeline {
4548
args '-v $HOME/.m2:/tmp/jenkins-home/.m2'
4649
}
4750
}
51+
environment {
52+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
53+
}
4854
steps {
4955
sh "PROFILE=spring-next,convergence ci/test.sh"
5056
}
@@ -56,6 +62,9 @@ pipeline {
5662
args '-v $HOME/.m2:/tmp/jenkins-home/.m2'
5763
}
5864
}
65+
environment {
66+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
67+
}
5968
steps {
6069
sh "PROFILE=convergence ci/test.sh"
6170
}
@@ -67,6 +76,9 @@ pipeline {
6776
args '-v $HOME/.m2:/tmp/jenkins-home/.m2'
6877
}
6978
}
79+
environment {
80+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
81+
}
7082
steps {
7183
sh "PROFILE=spring-next,convergence ci/test.sh"
7284
}
@@ -78,6 +90,9 @@ pipeline {
7890
args '-v $HOME/.m2:/tmp/jenkins-home/.m2'
7991
}
8092
}
93+
environment {
94+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
95+
}
8196
steps {
8297
sh "PROFILE=convergence ci/test.sh"
8398
}
@@ -89,6 +104,9 @@ pipeline {
89104
args '-v $HOME/.m2:/tmp/jenkins-home/.m2'
90105
}
91106
}
107+
environment {
108+
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
109+
}
92110
steps {
93111
sh "PROFILE=spring-next,convergence ci/test.sh"
94112
}

settings.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
<username>${env.USERNAME}</username>
1010
<password>${env.PASSWORD}</password>
1111
</server>
12+
<server>
13+
<id>spring-plugins-release</id>
14+
<username>${env.ARTIFACTORY_USR}</username>
15+
<password>${env.ARTIFACTORY_PSW}</password>
16+
</server>
17+
<server>
18+
<id>spring-libs-snapshot</id>
19+
<username>${env.ARTIFACTORY_USR}</username>
20+
<password>${env.ARTIFACTORY_PSW}</password>
21+
</server>
1222
</servers>
1323

1424
</settings>

0 commit comments

Comments
 (0)