version_number
This commit is contained in:
parent
61ccb7a37e
commit
c4ac652212
|
@ -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 .')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue