version_number
This commit is contained in:
parent
6ba664847c
commit
a581858a0b
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue