|
|
|
@ -156,7 +156,8 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
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 '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 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
sh 'sleep 10' |
|
|
|
sh 'sleep 10' |
|
|
|
@ -171,6 +172,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
stage("Test other configurations") { |
|
|
|
when { |
|
|
|
when { |
|
|
|
@ -193,7 +195,8 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
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 '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 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
sh 'sleep 10' |
|
|
|
sh 'sleep 10' |
|
|
|
@ -208,6 +211,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("test: MongoDB 6.0 (main)") { |
|
|
|
stage("test: MongoDB 6.0 (main)") { |
|
|
|
agent { |
|
|
|
agent { |
|
|
|
@ -221,7 +225,8 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
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 '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 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
sh 'sleep 10' |
|
|
|
sh 'sleep 10' |
|
|
|
@ -236,6 +241,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("test: MongoDB 7.0 (main)") { |
|
|
|
stage("test: MongoDB 7.0 (main)") { |
|
|
|
agent { |
|
|
|
agent { |
|
|
|
@ -249,7 +255,8 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-7.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-7.0:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
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 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
sh 'sleep 10' |
|
|
|
sh 'sleep 10' |
|
|
|
@ -264,6 +271,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("test: MongoDB 7.0 (driver-previous)") { |
|
|
|
stage("test: MongoDB 7.0 (driver-previous)") { |
|
|
|
agent { |
|
|
|
agent { |
|
|
|
@ -277,7 +285,8 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-7.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-7.0:${p['java.main.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
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 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
sh 'sleep 10' |
|
|
|
sh 'sleep 10' |
|
|
|
@ -292,6 +301,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage("test: MongoDB 7.0 (next)") { |
|
|
|
stage("test: MongoDB 7.0 (next)") { |
|
|
|
agent { |
|
|
|
agent { |
|
|
|
@ -305,7 +315,8 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
docker.image("harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-mongodb-7.0:${p['java.next.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
|
|
|
|
docker.image("springci/spring-data-with-mongodb-7.0:${p['java.next.tag']}").inside(p['docker.java.inside.basic']) { |
|
|
|
sh 'mkdir -p /tmp/mongodb/db /tmp/mongodb/log' |
|
|
|
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 'mongod --setParameter transactionLifetimeLimitSeconds=90 --setParameter maxTransactionLockRequestTimeoutMillis=10000 --dbpath /tmp/mongodb/db --replSet rs0 --fork --logpath /tmp/mongodb/log/mongod.log &' |
|
|
|
sh 'sleep 10' |
|
|
|
sh 'sleep 10' |
|
|
|
@ -322,6 +333,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
stage('Release to artifactory') { |
|
|
|
when { |
|
|
|
when { |
|
|
|
@ -342,6 +354,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
steps { |
|
|
|
steps { |
|
|
|
script { |
|
|
|
script { |
|
|
|
|
|
|
|
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) { |
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) { |
|
|
|
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" ' + |
|
|
|
sh 'MAVEN_OPTS="-Duser.name=' + "${p['jenkins.user.name']}" + ' -Duser.home=/tmp/jenkins-home" ' + |
|
|
|
"DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} " + |
|
|
|
"DEVELOCITY_CACHE_USERNAME=${DEVELOCITY_CACHE_USR} " + |
|
|
|
@ -360,6 +373,7 @@ pipeline { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
post { |
|
|
|
post { |
|
|
|
changed { |
|
|
|
changed { |
|
|
|
|