mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25: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
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -36,7 +36,7 @@ pipeline {
|
||||||
success {
|
success {
|
||||||
echo 'I succeeeded!'
|
echo 'I succeeeded!'
|
||||||
// For GitHub
|
// 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" \
|
-H "Content-Type: application/json" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-d "{\"state\": \"success\",\"context\": \"continuous-integration/jenkins\", \"description\": \"Jenkins\", \"target_url\": \"http://localhost:9090/job/spring-petclinic/$BUILD_NUMBER/console\"}"'
|
-d "{\"state\": \"success\",\"context\": \"continuous-integration/jenkins\", \"description\": \"Jenkins\", \"target_url\": \"http://localhost:9090/job/spring-petclinic/$BUILD_NUMBER/console\"}"'
|
||||||
|
@ -50,6 +50,11 @@ sh 'curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$G
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'I failed :('
|
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 {
|
changed {
|
||||||
echo 'Things were different before...'
|
echo 'Things were different before...'
|
||||||
|
|
5
pom.xml
5
pom.xml
|
@ -17,13 +17,10 @@
|
||||||
<properties>
|
<properties>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>internal.repo</id>
|
<id>internal.repo</id>
|
||||||
<name>Internal repo</name>
|
<name>Internal repo</name>
|
||||||
<url>file:///Users/Shared/Daphne/spring-petclinic</url>
|
<url>file:///Users/Shared/Daphne/spring-petclinic</url>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</repository>
|
</repository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<!-- Generic properties -->
|
<!-- Generic properties -->
|
||||||
|
|
Loading…
Reference in a new issue