From a581858a0bb8659769639ca9cfe8a3a1f1c5b41a Mon Sep 17 00:00:00 2001 From: ahmed531998 Date: Tue, 29 Aug 2023 16:17:45 +0200 Subject: [PATCH] version_number --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 97dec80..b7d0fac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,6 @@ pipeline { imagename = "d4science/janetfrontend" // d4science account on dockerhub registryCredential = 'e348bfab-5580-4db6-b0e0-d854966bde08' dockerImage = '' - version_info = '' git_url='https://code-repo.d4science.org/ahmed.ibrahim39699/JanetFrontEnd.git' } stages { @@ -18,8 +17,7 @@ pipeline { stage('Building image') { steps{ script { - version_info= sh(script: 'git rev-parse --short HEAD', returnStdout: true) - dockerImage = sh(script: 'docker build ' + imagename + ' --build-arg version_info= ' + version_info + ' .') + dockerImage = docker.build imagename } } }