|
|
|
|
@ -73,15 +73,13 @@ pipeline {
@@ -73,15 +73,13 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
image 'springci/spring-data-openjdk8-with-mongodb-4.2.0:latest' |
|
|
|
|
label 'data' |
|
|
|
|
args '-v $HOME:/tmp/jenkins-home' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
options { timeout(time: 30, unit: 'MINUTES') } |
|
|
|
|
steps { |
|
|
|
|
sh 'rm -rf ?' |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry('', 'hub.docker.com-springbuildmaster') { |
|
|
|
|
docker.image('springci/spring-data-openjdk8-with-mongodb-4.2.0:latest').inside('-v $HOME:/tmp/jenkins-home') { |
|
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
|
sh 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
|
sh 'sleep 10' |
|
|
|
|
@ -90,6 +88,9 @@ pipeline {
@@ -90,6 +88,9 @@ pipeline {
|
|
|
|
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Duser.name=jenkins -Dsort -U -B' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
|
when { |
|
|
|
|
@ -101,15 +102,13 @@ pipeline {
@@ -101,15 +102,13 @@ pipeline {
|
|
|
|
|
parallel { |
|
|
|
|
stage("test: mongodb 4.0 (jdk8)") { |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
image 'springci/spring-data-openjdk8-with-mongodb-4.0:latest' |
|
|
|
|
label 'data' |
|
|
|
|
args '-v $HOME:/tmp/jenkins-home' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
options { timeout(time: 30, unit: 'MINUTES') } |
|
|
|
|
steps { |
|
|
|
|
sh 'rm -rf ?' |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry('', 'hub.docker.com-springbuildmaster') { |
|
|
|
|
docker.image('springci/spring-data-openjdk8-with-mongodb-4.0:latest').inside('-v $HOME:/tmp/jenkins-home') { |
|
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
|
sh 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
|
sh 'sleep 10' |
|
|
|
|
@ -118,18 +117,19 @@ pipeline {
@@ -118,18 +117,19 @@ pipeline {
|
|
|
|
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Duser.name=jenkins -Dsort -U -B' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("test: mongodb 4.2 (jdk8)") { |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
image 'springci/spring-data-openjdk8-with-mongodb-4.2.0:latest' |
|
|
|
|
label 'data' |
|
|
|
|
args '-v $HOME:/tmp/jenkins-home' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
options { timeout(time: 30, unit: 'MINUTES') } |
|
|
|
|
steps { |
|
|
|
|
sh 'rm -rf ?' |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry('', 'hub.docker.com-springbuildmaster') { |
|
|
|
|
docker.image('springci/spring-data-openjdk8-with-mongodb-4.2.0:latest').inside('-v $HOME:/tmp/jenkins-home') { |
|
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
|
sh 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
|
sh 'sleep 10' |
|
|
|
|
@ -138,18 +138,19 @@ pipeline {
@@ -138,18 +138,19 @@ pipeline {
|
|
|
|
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean dependency:list test -Duser.name=jenkins -Dsort -U -B' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("test: baseline (jdk15)") { |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
image 'springci/spring-data-openjdk15-with-mongodb-4.2.0:latest' |
|
|
|
|
label 'data' |
|
|
|
|
args '-v $HOME:/tmp/jenkins-home' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
options { timeout(time: 30, unit: 'MINUTES') } |
|
|
|
|
steps { |
|
|
|
|
sh 'rm -rf ?' |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry('', 'hub.docker.com-springbuildmaster') { |
|
|
|
|
docker.image('springci/spring-data-openjdk15-with-mongodb-4.2.0:latest').inside('-v $HOME:/tmp/jenkins-home') { |
|
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
|
sh 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
|
sh 'sleep 10' |
|
|
|
|
@ -160,6 +161,9 @@ pipeline {
@@ -160,6 +161,9 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
|
when { |
|
|
|
|
@ -169,11 +173,7 @@ pipeline {
@@ -169,11 +173,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
image 'adoptopenjdk/openjdk8:latest' |
|
|
|
|
label 'data' |
|
|
|
|
args '-v $HOME:/tmp/jenkins-home' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
options { timeout(time: 20, unit: 'MINUTES') } |
|
|
|
|
|
|
|
|
|
@ -182,7 +182,9 @@ pipeline {
@@ -182,7 +182,9 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
steps { |
|
|
|
|
sh 'rm -rf ?' |
|
|
|
|
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 -Pci,artifactory ' + |
|
|
|
|
'-Dartifactory.server=https://repo.spring.io ' + |
|
|
|
|
"-Dartifactory.username=${ARTIFACTORY_USR} " + |
|
|
|
|
@ -193,17 +195,16 @@ pipeline {
@@ -193,17 +195,16 @@ pipeline {
|
|
|
|
|
'-Dmaven.test.skip=true clean deploy -U -B' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage('Publish documentation') { |
|
|
|
|
when { |
|
|
|
|
branch 'master' |
|
|
|
|
} |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
image 'adoptopenjdk/openjdk8:latest' |
|
|
|
|
label 'data' |
|
|
|
|
args '-v $HOME:/tmp/jenkins-home' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
options { timeout(time: 20, unit: 'MINUTES') } |
|
|
|
|
|
|
|
|
|
@ -212,6 +213,9 @@ pipeline {
@@ -212,6 +213,9 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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 -Pci,distribute ' + |
|
|
|
|
'-Dartifactory.server=https://repo.spring.io ' + |
|
|
|
|
"-Dartifactory.username=${ARTIFACTORY_USR} " + |
|
|
|
|
@ -221,6 +225,9 @@ pipeline {
@@ -221,6 +225,9 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
post { |
|
|
|
|
changed { |
|
|
|
|
|