Browse Source

Remove Docker Registry login.

Closes #4056.
3.2.x
John Blum 4 years ago
parent
commit
5e679ecede
  1. 8
      Jenkinsfile

8
Jenkinsfile vendored

@ -94,7 +94,6 @@ pipeline { @@ -94,7 +94,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.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 &'
@ -106,7 +105,6 @@ pipeline { @@ -106,7 +105,6 @@ pipeline {
}
}
}
}
stage("Test other configurations") {
when {
@ -126,7 +124,6 @@ pipeline { @@ -126,7 +124,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 &'
@ -138,7 +135,6 @@ pipeline { @@ -138,7 +135,6 @@ pipeline {
}
}
}
}
stage("test: baseline (LTS)") {
agent {
@ -150,7 +146,6 @@ pipeline { @@ -150,7 +146,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.lts.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 &'
@ -164,7 +159,6 @@ pipeline { @@ -164,7 +159,6 @@ pipeline {
}
}
}
}
stage('Release to artifactory') {
when {
@ -184,7 +178,6 @@ pipeline { @@ -184,7 +178,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 -s settings.xml -Pci,artifactory ' +
'-Dartifactory.server=https://repo.spring.io ' +
@ -199,7 +192,6 @@ pipeline { @@ -199,7 +192,6 @@ pipeline {
}
}
}
}
post {
changed {

Loading…
Cancel
Save