mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
on the way to deploy
This commit is contained in:
parent
248978498e
commit
f9abc20d65
2 changed files with 12 additions and 10 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -36,7 +36,7 @@ pipeline {
|
|||
success {
|
||||
echo 'I succeeeded!'
|
||||
// For GitHub
|
||||
sh 'curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$GIT_COMMIT?access_token=<YOUR_GITHUB_TOKEN>" \
|
||||
sh 'curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$GIT_COMMIT?access_token=4d88d2b679c35732e8b50e62cd60f18907d03a55" \
|
||||
-H "Content-Type: application/json" \
|
||||
-X POST \
|
||||
-d "{\"state\": \"success\",\"context\": \"continuous-integration/jenkins\", \"description\": \"Jenkins\", \"target_url\": \"http://localhost:9090/job/spring-petclinic/$BUILD_NUMBER/console\"}"'
|
||||
|
@ -50,7 +50,12 @@ sh 'curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$G
|
|||
}
|
||||
failure {
|
||||
echo 'I failed :('
|
||||
}
|
||||
// For GitHub
|
||||
sh 'curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$GIT_COMMIT?access_token=4d88d2b679c35732e8b50e62cd60f18907d03a55" \
|
||||
-H "Content-Type: application/json" \
|
||||
-X POST \
|
||||
-d "{\"state\": \"failure\",\"context\": \"continuous-integration/jenkins\", \"description\": \"Jenkins\", \"target_url\": \"http://localhost:9090/job/spring-petclinic/$BUILD_NUMBER/console\"}"'
|
||||
}
|
||||
changed {
|
||||
echo 'Things were different before...'
|
||||
}
|
||||
|
|
13
pom.xml
13
pom.xml
|
@ -17,14 +17,11 @@
|
|||
<properties>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>internal.repo</id>
|
||||
<name>Internal repo</name>
|
||||
<url>file:///Users/Shared/Daphne/spring-petclinic</url>
|
||||
|
||||
|
||||
|
||||
</repository>
|
||||
<repository>
|
||||
<id>internal.repo</id>
|
||||
<name>Internal repo</name>
|
||||
<url>file:///Users/Shared/Daphne/spring-petclinic</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
<!-- Generic properties -->
|
||||
<java.version>1.8</java.version>
|
||||
|
|
Loading…
Reference in a new issue