-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
25 lines (21 loc) · 830 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
def COLOR_MAP = ['SUCCESS': 'good', 'FAILURE': 'danger',]
pipeline {
agent any
stages {
stage('Test') {
steps {
echo "---Testing---"
script {
def here = load "helpers/message_type.groovy"
echo "did this work ${here.Messages.MessageType.SLACK}"
}
}
}
// stage('Slack it!') {
// steps {
// echo "---Testing Sending Slack Message---"
// slackSend channel: '#jenkins', color: COLOR_MAP[currentBuild.currentResult], message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} by Tania Simpson \n More info at: ${env.BUILD_URL}"
// }
// }
}
}