Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
add slack notification and build status
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisMon-01 committed Aug 21, 2018
1 parent e38a93f commit 2c1acc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pipeline{
steps {
script{
if(env.BRANCH_NAME=='testci2'|| env.BRANCH_NAME=='security-enhancements'){
slackSend (message: "BUILD START: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' CHECK THE RESULT ON: https://cd.daf.teamdigitale.it/blue/organizations/jenkins/CI-Dataportal_Backend/activity")
sh '''
sbt " -DSTAGING=true; reload; clean; compile; docker:publish"
'''
Expand All @@ -20,11 +21,17 @@ pipeline{
sh '''
cd kubernetes
./config-map-test.sh
kubectl apply -f daf_datipubblici_test.yaml
kubectl apply -f daf_datipubblici_test.yaml --force
'''
slackSend (color: '#00FF00', message: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' https://cd.daf.teamdigitale.it/blue/organizations/jenkins/CI-Dataportal_Backend/activity")
}
}
}
}
}
post {
failure {
slackSend (color: '#ff0000', message: "FAIL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' https://cd.daf.teamdigitale.it/blue/organizations/jenkins/CI-Dataportal_Backend/activity")
}
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<img title="Build Status Images" src="https://api.travis-ci.com/italia/dati-frontendserver.svg?token=sdc8mJz3EyP3LyxtXjxQ">
</a>

## status
[Build Status](http://131.1.252.41/job/CI-Dataportal_Backend/job/security-enhancements/badge/icon)

**FRONT END SERVER**

Il front end server è un componente della architettura di
Expand Down

0 comments on commit 2c1acc9

Please sign in to comment.