From 2d124fd79503e4f9beb9da8fe81fb6ecdf3eea3e Mon Sep 17 00:00:00 2001 From: ahmed531998 Date: Wed, 30 Aug 2023 11:36:20 +0200 Subject: [PATCH] version_number --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 645cbce..b84b605 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { stage('Building image') { steps{ script { - version_info=sh(script: "git rev-parse --short HEAD", returnStdout: true) + def version_info=sh(script: "git rev-parse --short HEAD", returnStdout: true) dockerImage = docker.build(imagename, '--build-arg "version_info=${version_info}" .') imagename } }