This commit is contained in:
Oleksandr Butenko 2021-07-13 16:58:10 +03:00 committed by GitHub
parent 2131b8abd5
commit 932cc373b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

44
Jenkinsfile vendored
View file

@ -3,28 +3,19 @@ pipeline {
registry = "sprientera/pet"
registryCredential = 'dockerhub_id'
dockerImage = ''
RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true)
// RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true)
// commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim()
}
agent any
stages {
stage('get hash') {
steps {
sh 'echo ${GIT_COMMIT_MSG}'
script {
commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim()
sh 'echo ${commit}'
}
}
}
stage('Jira2') {
steps {
script {
sh 'echo ${commit}'
jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992'
}
}
}
// stage('Jira2') {
// steps {
// script {
// sh 'echo ${commit}'
// jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992'
// }
//}
//}
stage('Build') {
steps {
echo 'Running build automation'
@ -75,6 +66,21 @@ pipeline {
}
}
}
stage('get hash') {
steps {
sh 'echo ${GIT_COMMIT_MSG}'
script {
commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim()
sh 'echo ${commit}'
}
}
}
}
post {
success {
echo 'I succeeded!'
jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992'
}
}
}
}
}