From bbba38536495ac93c8273d9bf29b258cdbb425ce Mon Sep 17 00:00:00 2001 From: Mason Packard Date: Tue, 13 Sep 2016 11:06:54 -0400 Subject: [PATCH] Change pipeline notification for Jenkins appliance builds. --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a878a18..3eb29a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,8 +16,8 @@ node('packer') { performBuild("grouper") } else if (BRANCH_TEST=="comanage-production"){ performBuild("comanage") - } - + } + } def performBuild(String project){ @@ -61,15 +61,15 @@ def performBuild(String project){ stage 'Sync appliances to S3 bucket' sh "aws s3 sync builds s3://internet2-tier-appliance-us-west-1" - + stage 'Publish results' - + sh "bin/perms.sh > results.txt" - slackSend color: 'good', message: "BUILD SUCCESS: Shibboleth Appliance build success. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>)" - + slackSend color: 'good', message: "BUILD SUCCESS: Appliance build success. ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL} |Open>)" + slackSend color: 'good', message: readFile('./results.txt') - + sh "rm results.txt" } @@ -85,4 +85,4 @@ def handleError(String message){ slackSend color: 'danger', message: "${message}" //step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'chris.bynum@levvel.io', sendToIndividuals: true]) sh 'exit 1' -} \ No newline at end of file +}