mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 23:35:50 +00:00
jenkins
This commit is contained in:
parent
5093392716
commit
94e187e062
1 changed files with 0 additions and 5 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -1,6 +1,4 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
String buildUrl = "${BUILD_URL}"
|
|
||||||
String gitStatusPostUrl = "https://<Github Personal Access Token>:x-oauth-basic@api.github.com/repos/<owner>/<repo>/statuses/${gitHash}"
|
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
@ -40,7 +38,4 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
sh """
|
|
||||||
curl -X POST -H "application/json" -d '{"state":"success", "target_url":"${buildUrl}", "description":"Build Success", "context":"build/job"}' "${gitStatusPostUrl}"
|
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue