Skip to content

Commit 6d30222

Browse files
mp911dejxblum
authored andcommitted
Refine CI triggers.
See spring-projects#538
1 parent 9160128 commit 6d30222

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

Jenkinsfile

+1-29
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pipeline {
99

1010
triggers {
1111
pollSCM 'H/10 * * * *'
12-
upstream(upstreamProjects: "spring-data-commons/main", threshold: hudson.model.Result.SUCCESS)
12+
upstream(upstreamProjects: "spring-data-commons/3.0.x", threshold: hudson.model.Result.SUCCESS)
1313
}
1414

1515
options {
@@ -151,34 +151,6 @@ pipeline {
151151
}
152152
}
153153
}
154-
stage('Publish documentation') {
155-
when {
156-
branch 'main'
157-
}
158-
agent {
159-
label 'data'
160-
}
161-
options { timeout(time: 20, unit: 'MINUTES') }
162-
163-
environment {
164-
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
165-
}
166-
167-
steps {
168-
script {
169-
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
170-
docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
171-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
172-
'-Dartifactory.server=https://repo.spring.io ' +
173-
"-Dartifactory.username=${ARTIFACTORY_USR} " +
174-
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
175-
"-Dartifactory.distribution-repository=temp-private-local " +
176-
'-Dmaven.test.skip=true clean deploy -U -B'
177-
}
178-
}
179-
}
180-
}
181-
}
182154
}
183155

184156
post {

0 commit comments

Comments
 (0)