Skip to content

Commit 467df3a

Browse files
mp911dejxblum
authored andcommitted
Refine CI triggers.
See spring-projects#538
1 parent de92e25 commit 467df3a

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
@@ -3,7 +3,7 @@ pipeline {
33

44
triggers {
55
pollSCM 'H/10 * * * *'
6-
upstream(upstreamProjects: "spring-data-commons/main", threshold: hudson.model.Result.SUCCESS)
6+
upstream(upstreamProjects: "spring-data-commons/3.0.x", threshold: hudson.model.Result.SUCCESS)
77
}
88

99
options {
@@ -84,34 +84,6 @@ pipeline {
8484
}
8585
}
8686
}
87-
stage('Publish documentation') {
88-
when {
89-
branch 'main'
90-
}
91-
agent {
92-
label 'data'
93-
}
94-
options { timeout(time: 20, unit: 'MINUTES') }
95-
96-
environment {
97-
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
98-
}
99-
100-
steps {
101-
script {
102-
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
103-
docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
104-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
105-
'-Dartifactory.server=https://repo.spring.io ' +
106-
"-Dartifactory.username=${ARTIFACTORY_USR} " +
107-
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
108-
"-Dartifactory.distribution-repository=temp-private-local " +
109-
'-Dmaven.test.skip=true clean deploy -U -B'
110-
}
111-
}
112-
}
113-
}
114-
}
11587
}
11688

11789
post {

0 commit comments

Comments
 (0)