diff --git a/Jenkinsfile b/Jenkinsfile index 86d678983..9bb551bdc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ pipeline { script { def branch = env.BRANCH_NAME def dockerRepo = (branch == 'main') ? 'main' : 'mr' - def imageTag = "${DOCKER_HUB_USER}/${repo}:${GIT_COMMIT_SHORT}" + def imageTag = "${DOCKER_HUB_USER}/${dockerRepo}:${GIT_COMMIT_SHORT}" withCredentials([usernamePassword( credentialsId: DOCKERHUB_CREDES,