version_number

This commit is contained in:
ahmed531998 2023-08-29 16:13:22 +02:00
parent 61ccb7a37e
commit c4ac652212
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -6,6 +6,7 @@ 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 {
@ -17,8 +18,8 @@ pipeline {
stage('Building image') {
steps{
script {
def version_info= sh(script: 'git rev-parse --short HEAD', returnStdout: true)
dockerImage = sh(script: 'docker build $imagename -t --build-arg version_info=$version_info .')
version_info= sh(script: 'git rev-parse --short HEAD', returnStdout: true)
dockerImage = sh(script: 'docker build $imagename --build-arg version_info=$version_info .')
}
}
}