mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
DEV-1
This commit is contained in:
parent
c3a2179c79
commit
058d81915c
1 changed files with 5 additions and 4 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -4,22 +4,23 @@ pipeline {
|
||||||
registryCredential = 'dockerhub_id'
|
registryCredential = 'dockerhub_id'
|
||||||
dockerImage = ''
|
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)
|
||||||
TaskID = ''
|
|
||||||
}
|
}
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('get hash') {
|
stage('get hash') {
|
||||||
steps {
|
steps {
|
||||||
sh 'echo ${RELEASE_NOTES}'
|
sh 'echo ${RELEASE_NOTES}'
|
||||||
sh 'echo ${GIT_COMMIT_MSG}'
|
sh 'echo ${GIT_COMMIT_MSG}'
|
||||||
|
sh 'echo 'git log -1 --pretty=%''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Jira2') {
|
stage('Jira2') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
TaskID = sh 'git log -1 --pretty=%'
|
commit = sh 'git log -1 --pretty=%'
|
||||||
sh 'echo ${TaskID}'
|
sh 'echo ${TaskID}'
|
||||||
jiraAddComment idOrKey: "${TaskID}", comment: 'build successfull', site: 'butenko992'
|
jiraAddComment idOrKey: "${commit}", comment: 'build successfull', site: 'butenko992'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue