version_number

This commit is contained in:
ahmed531998 2023-08-29 16:17:45 +02:00
parent 6ba664847c
commit a581858a0b
1 changed files with 1 additions and 3 deletions

4
Jenkinsfile vendored
View File

@ -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
}
}
}