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
44
Jenkinsfile
vendored
44
Jenkinsfile
vendored
|
@ -3,28 +3,19 @@ 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)
|
// RELEASE_NOTES = sh (script: """git log --format="medium" -1 ${GIT_COMMIT}""", returnStdout:true)
|
||||||
// commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim()
|
// commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('get hash') {
|
// stage('Jira2') {
|
||||||
steps {
|
// steps {
|
||||||
sh 'echo ${GIT_COMMIT_MSG}'
|
// script {
|
||||||
script {
|
// sh 'echo ${commit}'
|
||||||
commit = sh (script: "git log -1 --pretty=%B", , returnStdout: true).trim()
|
// jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992'
|
||||||
sh 'echo ${commit}'
|
// }
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
|
||||||
stage('Jira2') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh 'echo ${commit}'
|
|
||||||
jiraAddComment idOrKey: "${commit}", comment: 'build successfull from commit', site: 'butenko992'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Running build automation'
|
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