diff --git a/Jenkinsfile b/Jenkinsfile index 5c2f5ff..366bb29 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,8 +3,9 @@ pipeline { environment { DOCKER_IMAGE = 'homework-backend' - DOCKER_TAG = "${env.BUILD_NUMBER}" - DOCKER_REGISTRY = '192.168.50.221:45000' // Replace with your Docker registry + IMAGE_TAG = "${env.BUILD_NUMBER ?: 'latest'}" + DOCKER_REGISTRY = "192.168.50.221:45000" // replace with your registry e.g. docker.io/yourorg + DOCKER_CREDENTIALS_ID = "dockerhub-credentials" // set this credential in Jenkins } stages {