Update Jenkinsfile

This commit is contained in:
Zheyuan Wu
2025-07-05 01:47:01 -05:00
parent 8cd6a3a2bc
commit 76e50de44d

11
Jenkinsfile vendored
View File

@@ -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"
}
}
}