Update Jenkinsfile

This commit is contained in:
Oleksandr Butenko 2021-07-13 13:31:42 +03:00 committed by GitHub
parent 126d384686
commit 099b0ae5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -3,6 +3,7 @@ pipeline {
registry = "sprientera/pet" registry = "sprientera/pet"
registryCredential = 'dockerhub_id' registryCredential = 'dockerhub_id'
dockerImage = '' dockerImage = ''
RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true)
} }
agent any agent any
stages { stages {
@ -13,6 +14,7 @@ pipeline {
} }
stage('get hash') { stage('get hash') {
steps { steps {
sh 'echo ${RELEASE_NOTES}'
sh 'echo ${GIT_COMMIT}' sh 'echo ${GIT_COMMIT}'
} }
} }