missing steps

This commit is contained in:
Daphné Augier 2020-04-11 23:42:00 +02:00
parent c65f2673ea
commit f7792b2de2

8
Jenkinsfile vendored
View file

@ -20,7 +20,9 @@ pipeline {
} }
} }
stage('Deploy') { stage('Deploy') {
steps{
echo "Branch name: ${env.BRANCH_NAME}" echo "Branch name: ${env.BRANCH_NAME}"
}
when { when {
branch 'master' branch 'master'
} }
@ -36,7 +38,11 @@ pipeline {
} }
success { success {
echo 'I succeeeded!' echo 'I succeeeded!'
// For GitHub
curl "https://api.GitHub.com/repos/daphneaugier/spring-petclinic/statuses/$GIT_COMMIT?access_token=<YOUR_GITHUB_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 // Email
mail to: 'daphne.augier@gmail.com', mail to: 'daphne.augier@gmail.com',
subject: "Successful Pipeline: ${currentBuild.fullDisplayName}", subject: "Successful Pipeline: ${currentBuild.fullDisplayName}",