|
|
|
|
@ -83,8 +83,9 @@ pipeline {
@@ -83,8 +83,9 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
stage("test: baseline (jdk8)") { |
|
|
|
|
when { |
|
|
|
|
beforeAgent(true) |
|
|
|
|
anyOf { |
|
|
|
|
branch 'main' |
|
|
|
|
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -113,8 +114,9 @@ pipeline {
@@ -113,8 +114,9 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
|
when { |
|
|
|
|
beforeAgent(true) |
|
|
|
|
allOf { |
|
|
|
|
branch 'main' |
|
|
|
|
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -219,8 +221,9 @@ pipeline {
@@ -219,8 +221,9 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
|
when { |
|
|
|
|
beforeAgent(true) |
|
|
|
|
anyOf { |
|
|
|
|
branch 'main' |
|
|
|
|
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -250,35 +253,6 @@ pipeline {
@@ -250,35 +253,6 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage('Publish documentation') { |
|
|
|
|
when { |
|
|
|
|
branch 'main' |
|
|
|
|
} |
|
|
|
|
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 { |
|
|
|
|
|