message: Added Jenkins message to slack on Master Build Failures
diff: @@ -44,11 +44,12 @@ node('ubuntu') {
  testNodeWrapper(app)
  } catch (Exception ex) {
  currentBuild.result = "FAILED"
  + if (env.BRANCH_NAME == "master") {
  + fail()
  + }
  echo "$ex error"
  } finally {
  -
  step([$class: 'WsCleanup'])
  -
  }
  }
  @@ -75,4 +76,13 @@ def testNodeWrapper(envn) {
  }
  }
  +def fail() {
  +
  + def message = [
  + message: "$JOB_NAME - Build # $BUILD_NUMBER - fail: Check console output at $BUILD_URL to view the results."
  + ]
  +
  + slackSend message
  +
  +}
  