Update Jenkinsfile

This commit is contained in:
Reuben George 2024-03-25 23:47:20 +05:30 committed by GitHub
parent f4d297deb2
commit 971fbf4f9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
Jenkinsfile vendored
View file

@ -35,7 +35,7 @@ pipeline {
steps { steps {
script { script {
def GIT_COMMIT_SHORT = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim() def GIT_COMMIT_SHORT = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
def DOCKER_TAG = "${DOCKER_IMAGE_NAME}:${GIT_COMMIT_SHORT}" env.DOCKER_TAG = "${DOCKER_IMAGE_NAME}:${GIT_COMMIT_SHORT}"
sh "docker build -t ${DOCKER_TAG} ." sh "docker build -t ${DOCKER_TAG} ."
} }
} }