This commit is contained in:
Oleksandr Butenko 2021-07-13 16:20:31 +03:00 committed by GitHub
parent c3a2179c79
commit 058d81915c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
Jenkinsfile vendored
View file

@ -4,22 +4,23 @@ pipeline {
registryCredential = 'dockerhub_id'
dockerImage = ''
RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true)
TaskID = ''
}
agent any
stages {
stage('get hash') {
steps {
sh 'echo ${RELEASE_NOTES}'
sh 'echo ${GIT_COMMIT_MSG}'
sh 'echo ${GIT_COMMIT_MSG}'
sh 'echo 'git log -1 --pretty=%''
}
}
stage('Jira2') {
steps {
script {
TaskID = sh 'git log -1 --pretty=%'
commit = sh 'git log -1 --pretty=%'
sh 'echo ${TaskID}'
jiraAddComment idOrKey: "${TaskID}", comment: 'build successfull', site: 'butenko992'
jiraAddComment idOrKey: "${commit}", comment: 'build successfull', site: 'butenko992'
}
}
}