Update Jenkinsfile
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -32,11 +32,12 @@ pipeline {
|
||||
script {
|
||||
echo "Building docker image ${registry}:${version}.${env.BUILD_ID}"
|
||||
def customImage = docker.build("${registry}:v${version}.${env.BUILD_ID}")
|
||||
echo "Logging in to docker hub"
|
||||
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-creds') {
|
||||
echo "Pushing docker image ${registry}:v${version}.${env.BUILD_ID}"
|
||||
customImage.push()
|
||||
}
|
||||
// echo "Logging in to docker hub"
|
||||
// docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-creds') {
|
||||
// echo "Pushing docker image ${registry}:v${version}.${env.BUILD_ID}"
|
||||
// customImage.push()
|
||||
// }
|
||||
echo "skipping push due to conflicted servers"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user