Skip to content

Commit

Permalink
temp jenkinsfile tweak and test
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Dec 3, 2019
1 parent 1fb1967 commit 53dc30f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ node('node') {
echo "Setting build result to FAILURE"
currentBuild.result = "FAILURE"

slackSend color: 'danger', message: "@channel ${env.BRANCH_NAME} build failed during stage ${env.STAGE_NAME} ${env.BUILD_URL}"

mail from: 'builds@storj.io',
replyTo: 'builds@storj.io',
to: 'builds@storj.io',
subject: "storj/storj branch ${env.BRANCH_NAME} build failed",
body: "Project build log: ${env.BUILD_URL}"
if (env.BRANCH_NAME == 'master') {
slackSend color: 'danger', message: "@channel ${env.BRANCH_NAME} build failed during stage ${env.STAGE_NAME} ${env.BUILD_URL}"

mail from: 'builds@storj.io',
replyTo: 'builds@storj.io',
to: 'builds@storj.io',
subject: "storj/storj branch ${env.BRANCH_NAME} build failed",
body: "Project build log: ${env.BUILD_URL}"
}

throw err
throw err

}
finally {
Expand Down

0 comments on commit 53dc30f

Please sign in to comment.