Remove Docker Registry login.
Closes
@@ -38,7 +38,6 @@ pipeline {
steps {
script {
- docker.withRegistry(p['docker.registry'], p['docker.credentials']) {
docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.docker']) {
sh "docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}"
sh "PROFILE=ci,all-dbs ci/test.sh"
@@ -47,7 +46,6 @@ pipeline {
}
}
}
- }
stage('Release to artifactory') {
when {
@@ -68,7 +66,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 -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-relational-non-root ' +
'-Dartifactory.server=https://repo.spring.io ' +
@@ -83,7 +80,6 @@ pipeline {
}
}
}
- }
post {
changed {
