Fix CI pipeline
This commit is contained in:
parent
31ab201175
commit
c7852125a8
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -39,12 +39,9 @@ node-prune```
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
TAG_VERSION = sh (
|
||||
script: 'docker run --rm -v $(pwd)/manager:/data ${DOCKER_CI_TOOLS} bash -c "cat /data/package.json|jq -r \'.version\'"',
|
||||
returnStdout: true
|
||||
).trim()
|
||||
def TAG_VERSION = getPackageVersion()
|
||||
|
||||
sh '''docker build -t ${TEMP_IMAGE_NAME} .
|
||||
sh '''docker build -t $TEMP_IMAGE_NAME .
|
||||
exit $?'''
|
||||
}
|
||||
}
|
||||
@ -80,3 +77,8 @@ exit $?'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def getPackageVersion() {
|
||||
ver = sh(script: 'docker run --rm -v $(pwd)/manager:/data $DOCKER_CI_TOOLS bash -c "cat /data/package.json|jq -r \'.version\'"', returnStdout: true)
|
||||
return ver.trim()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user