|
|
|
|
@ -116,7 +116,8 @@ pipeline {
@@ -116,7 +116,8 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-4.4:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
|
docker.image("springci/spring-data-with-mongodb-4.4:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
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' |
|
|
|
|
@ -128,6 +129,7 @@ pipeline {
@@ -128,6 +129,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
|
when { |
|
|
|
|
@ -149,7 +151,8 @@ pipeline {
@@ -149,7 +151,8 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-5.0:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
|
docker.image("springci/spring-data-with-mongodb-5.0:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
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' |
|
|
|
|
@ -161,6 +164,7 @@ pipeline {
@@ -161,6 +164,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("test: MongoDB 6.0 (main)") { |
|
|
|
|
agent { |
|
|
|
|
@ -172,7 +176,8 @@ pipeline {
@@ -172,7 +176,8 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-6.0:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
|
docker.image("springci/spring-data-with-mongodb-6.0:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
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' |
|
|
|
|
@ -184,6 +189,7 @@ pipeline {
@@ -184,6 +189,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("test: MongoDB 6.0 (next)") { |
|
|
|
|
agent { |
|
|
|
|
@ -195,6 +201,7 @@ pipeline {
@@ -195,6 +201,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-6.0:${p['java.next.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
|
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 &' |
|
|
|
|
@ -209,6 +216,7 @@ pipeline {
@@ -209,6 +216,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
|
when { |
|
|
|
|
@ -227,6 +235,7 @@ pipeline {
@@ -227,6 +235,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) { |
|
|
|
|
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' + |
|
|
|
|
"./mvnw -s settings.xml -Pci,artifactory " + |
|
|
|
|
@ -242,6 +251,7 @@ pipeline {
@@ -242,6 +251,7 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
post { |
|
|
|
|
changed { |
|
|
|
|
|