Skip to content

Commit 0f6e966

Browse files
authored
Slack Notification
Slack Notification Integrated
1 parent 0d4e95a commit 0f6e966

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

Jenkinsfile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
pipeline {
2+
23
// agent { node "Slave1" } or agent any
4+
35
agent any
4-
environment {
6+
7+
tool { maven "maven3" }
8+
// environment {
59
// Install the Maven version configured as "maven3.8" and add it to the path.
6-
// tool { maven "maven3"
10+
//
711
// another way of using maven given below.
812

9-
PATH="/opt/maven3/bin:$PATH"
10-
}
13+
// PATH="/opt/maven3/bin:$PATH"
14+
//}
1115

1216
stages {
1317
stage('CheckOut') {
@@ -32,5 +36,11 @@
3236
}
3337
}
3438
}
39+
stage("Slack-Notify"){
40+
steps{
41+
echo "Build successfully"
42+
slackSend channel: 'jenkins', color: '#439FE0', message: 'Initial Build Successful'
43+
}
44+
}
3545
}
3646
}

0 commit comments

Comments
 (0)