|
|
|
|
@ -14,8 +14,9 @@ pipeline {
@@ -14,8 +14,9 @@ pipeline {
|
|
|
|
|
stages { |
|
|
|
|
stage("test: baseline (jdk8)") { |
|
|
|
|
when { |
|
|
|
|
beforeAgent(true) |
|
|
|
|
anyOf { |
|
|
|
|
branch 'main' |
|
|
|
|
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -44,8 +45,9 @@ pipeline {
@@ -44,8 +45,9 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
|
when { |
|
|
|
|
beforeAgent(true) |
|
|
|
|
allOf { |
|
|
|
|
branch 'main' |
|
|
|
|
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -102,8 +104,9 @@ pipeline {
@@ -102,8 +104,9 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
|
when { |
|
|
|
|
beforeAgent(true) |
|
|
|
|
anyOf { |
|
|
|
|
branch 'main' |
|
|
|
|
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -133,35 +136,6 @@ pipeline {
@@ -133,35 +136,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 -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-jdbc-non-root ' + |
|
|
|
|
'-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 { |
|
|
|
|
|