From f7792b2de2d52e2f832c28dee8f082df861994cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Augier?= Date: Sat, 11 Apr 2020 23:42:00 +0200 Subject: [PATCH] missing steps --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1cd05cbb1..9ee75ceb6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,9 @@ pipeline { } } stage('Deploy') { - echo "Branch name: ${env.BRANCH_NAME}" + steps{ + echo "Branch name: ${env.BRANCH_NAME}" + } when { branch 'master' } @@ -36,7 +38,11 @@ pipeline { } success { echo 'I succeeeded!' - + // For GitHub +curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$GIT_COMMIT?access_token=" \ + -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\"}" // Email mail to: 'daphne.augier@gmail.com', subject: "Successful Pipeline: ${currentBuild.fullDisplayName}",