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
2131b8abd5
commit
932cc373b5
1 changed files with 25 additions and 19 deletions
42
Jenkinsfile
vendored
42
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue