|
|
|
|
@ -78,7 +78,6 @@ pipeline {
@@ -78,7 +78,6 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry(p['docker.registry'], p['docker.credentials']) { |
|
|
|
|
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']) { |
|
|
|
|
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 &' |
|
|
|
|
@ -90,7 +89,6 @@ pipeline {
@@ -90,7 +89,6 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage("Test other configurations") { |
|
|
|
|
when { |
|
|
|
|
@ -112,7 +110,6 @@ pipeline {
@@ -112,7 +110,6 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry(p['docker.registry'], p['docker.credentials']) { |
|
|
|
|
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']) { |
|
|
|
|
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 &' |
|
|
|
|
@ -126,7 +123,6 @@ pipeline {
@@ -126,7 +123,6 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
stage('Release to artifactory') { |
|
|
|
|
when { |
|
|
|
|
@ -147,7 +143,6 @@ pipeline {
@@ -147,7 +143,6 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
steps { |
|
|
|
|
script { |
|
|
|
|
docker.withRegistry(p['docker.registry'], p['docker.credentials']) { |
|
|
|
|
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) { |
|
|
|
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -v' |
|
|
|
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,artifactory ' + |
|
|
|
|
@ -163,7 +158,6 @@ pipeline {
@@ -163,7 +158,6 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
post { |
|
|
|
|
changed { |
|
|
|
|
|