From f9abc20d65b60672d8ab5294c94bf3894068aff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Augier?= Date: Sun, 12 Apr 2020 00:10:18 +0200 Subject: [PATCH] on the way to deploy --- Jenkinsfile | 9 +++++++-- pom.xml | 13 +++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2c244998b..125df6dfc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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=" \ +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...' } diff --git a/pom.xml b/pom.xml index 8a10f0968..1bcf62e0a 100644 --- a/pom.xml +++ b/pom.xml @@ -17,14 +17,11 @@ - - internal.repo - Internal repo - file:///Users/Shared/Daphne/spring-petclinic - - - - + + internal.repo + Internal repo + file:///Users/Shared/Daphne/spring-petclinic + 1.8