mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
asd
This commit is contained in:
parent
35f8656f0e
commit
5093392716
1 changed files with 5 additions and 7 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -1,7 +1,6 @@
|
|||
String buildUrl = "${BUILD_URL}"
|
||||
String gitStatusPostUrl = "https://<Github Personal Access Token>:x-oauth-basic@api.github.com/repos/<owner>/<repo>/statuses/${gitHash}"
|
||||
|
||||
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
|
||||
stages {
|
||||
stage('Build') {
|
||||
|
@ -41,8 +40,7 @@ pipeline {
|
|||
}
|
||||
|
||||
}
|
||||
sh """
|
||||
curl -X POST -H "application/json" -d '{"state":"success", "target_url":"${buildUrl}", "description":"Build Success", "context":"build/job"}' "${gitStatusPostUrl}"
|
||||
"""
|
||||
}
|
||||
|
||||
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