Browse Source

Polishing.

See #2423
pull/2491/head
Mark Paluch 4 years ago
parent
commit
a11340b85e
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 37
      Jenkinsfile

37
Jenkinsfile vendored

@ -14,8 +14,9 @@ pipeline { @@ -14,8 +14,9 @@ pipeline {
stages {
stage("test: baseline (jdk8)") {
when {
beforeAgent(true)
anyOf {
branch ''
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}
@ -39,8 +40,9 @@ pipeline { @@ -39,8 +40,9 @@ pipeline {
stage("Test other configurations") {
when {
beforeAgent(true)
allOf {
branch ''
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}
@ -87,8 +89,9 @@ pipeline { @@ -87,8 +89,9 @@ pipeline {
stage('Release to artifactory') {
when {
beforeAgent(true)
anyOf {
branch ''
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}
@ -118,34 +121,6 @@ pipeline { @@ -118,34 +121,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('adoptopenjdk/openjdk8:latest').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 {

Loading…
Cancel
Save