Polishing.

See #2423
This commit is contained in:
Mark Paluch
2021-09-21 11:26:54 +02:00
committed by Jens Schauder
parent 2618221115
commit e75bb40b2e

32
Jenkinsfile vendored
View File

@@ -16,7 +16,7 @@ pipeline {
when {
beforeAgent(true)
anyOf {
branch ''
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}
@@ -42,7 +42,7 @@ pipeline {
when {
beforeAgent(true)
anyOf {
branch ''
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}
@@ -72,34 +72,6 @@ pipeline {
}
}
}
stage('Publish documentation') {
when {
branch ''
}
agent {
label 'data'
}
options { timeout(time: 20, unit: 'MINUTES') }
environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
}
steps {
script {
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
docker.image('openjdk/openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
'-Dartifactory.server=https://repo.spring.io ' +
"-Dartifactory.username=${ARTIFACTORY_USR} " +
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
"-Dartifactory.distribution-repository=temp-private-local " +
'-Dmaven.test.skip=true clean deploy -U -B'
}
}
}
}
}
}
post {