Skip to content

Commit e9c600a

Browse files
authored
Migrate build to Spring Develocity Conventions extension.
* Migrate build to Spring Develocity Conventions extension. * Adopt Develocity environment variables. Closes #1954
1 parent 8d5a3d8 commit e9c600a

File tree

7 files changed

+4
-57
lines changed

7 files changed

+4
-57
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ node_modules
1313
node
1414
package-lock.json
1515

16-
.mvn/.gradle-enterprise
16+
.mvn/.develocity

.mvn/extensions.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<extensions>
33
<extension>
4-
<groupId>com.gradle</groupId>
5-
<artifactId>gradle-enterprise-maven-extension</artifactId>
6-
<version>1.19.2</version>
7-
</extension>
8-
<extension>
9-
<groupId>com.gradle</groupId>
10-
<artifactId>common-custom-user-data-maven-extension</artifactId>
11-
<version>1.12.4</version>
4+
<groupId>io.spring.develocity.conventions</groupId>
5+
<artifactId>develocity-conventions-maven-extension</artifactId>
6+
<version>0.0.19</version>
127
</extension>
138
</extensions>

.mvn/gradle-enterprise.xml

Lines changed: 0 additions & 31 deletions
This file was deleted.

Jenkinsfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pipeline {
3232
options { timeout(time: 30, unit: 'MINUTES') }
3333
environment {
3434
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
35-
DEVELOCITY_CACHE = credentials("${p['develocity.cache.credentials']}")
3635
DEVELOCITY_ACCESS_KEY = credentials("${p['develocity.access-key']}")
3736
}
3837
steps {
@@ -63,7 +62,6 @@ pipeline {
6362
options { timeout(time: 30, unit: 'MINUTES') }
6463
environment {
6564
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
66-
DEVELOCITY_CACHE = credentials("${p['develocity.cache.credentials']}")
6765
DEVELOCITY_ACCESS_KEY = credentials("${p['develocity.access-key']}")
6866
}
6967
steps {
@@ -94,17 +92,13 @@ pipeline {
9492
options { timeout(time: 20, unit: 'MINUTES') }
9593
environment {
9694
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
97-
DEVELOCITY_CACHE = credentials("${p['develocity.cache.credentials']}")
9895
DEVELOCITY_ACCESS_KEY = credentials("${p['develocity.access-key']}")
9996
}
10097
steps {
10198
script {
10299
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) {
103100
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) {
104101
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' +
105-
"DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} " +
106-
"DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW} " +
107-
"GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY} " +
108102
"./mvnw -s settings.xml -Pci,artifactory -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-couchbase-non-root " +
109103
"-Dartifactory.server=${p['artifactory.url']} " +
110104
"-Dartifactory.username=${ARTIFACTORY_USR} " +

ci/clean.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
set -euo pipefail
44

5-
export DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR}
6-
export DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW}
75
export JENKINS_USER=${JENKINS_USER_NAME}
86

9-
# The environment variable to configure access key is still GRADLE_ENTERPRISE_ACCESS_KEY
10-
export GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY}
11-
127
MAVEN_OPTS="-Duser.name=${JENKINS_USER} -Duser.home=/tmp/jenkins-home" \
138
./mvnw -s settings.xml clean -Dscan=false -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-couchbase

ci/pipeline.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ docker.proxy.credentials=usw1_packages_broadcom_com-jenkins-token
3131
artifactory.credentials=02bd1690-b54f-4c9f-819d-a77cb7a9822c
3232
artifactory.url=https://repo.spring.io
3333
artifactory.repository.snapshot=libs-snapshot-local
34-
develocity.cache.credentials=gradle_enterprise_cache_user
3534
develocity.access-key=gradle_enterprise_secret_access_key
3635
jenkins.user.name=spring-builds+jenkins

ci/test.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ set -euo pipefail
55
mkdir -p /tmp/jenkins-home/.m2/spring-data-couchbase
66
chown -R 1001:1001 .
77

8-
export DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR}
9-
export DEVELOCITY_CACHE_PASSWORD=${DEVELOCITY_CACHE_PSW}
108
export JENKINS_USER=${JENKINS_USER_NAME}
119

12-
# The environment variable to configure access key is still GRADLE_ENTERPRISE_ACCESS_KEY
13-
export GRADLE_ENTERPRISE_ACCESS_KEY=${DEVELOCITY_ACCESS_KEY}
14-
1510
MAVEN_OPTS="-Duser.name=${JENKINS_USER} -Duser.home=/tmp/jenkins-home" \
1611
./mvnw -s settings.xml \
1712
-P${PROFILE} clean dependency:list test -Dsort -U -B -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-couchbase

0 commit comments

Comments
 (0)