We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d4e95a commit 0f6e966Copy full SHA for 0f6e966
Jenkinsfile
@@ -1,13 +1,17 @@
1
pipeline {
2
+
3
// agent { node "Slave1" } or agent any
4
5
agent any
- environment {
6
7
+ tool { maven "maven3" }
8
+ // environment {
9
// Install the Maven version configured as "maven3.8" and add it to the path.
- // tool { maven "maven3"
10
+ //
11
// another way of using maven given below.
12
- PATH="/opt/maven3/bin:$PATH"
- }
13
+ // PATH="/opt/maven3/bin:$PATH"
14
+ //}
15
16
stages {
17
stage('CheckOut') {
@@ -32,5 +36,11 @@
32
36
}
33
37
34
38
39
+ stage("Slack-Notify"){
40
+ steps{
41
+ echo "Build successfully"
42
+ slackSend channel: 'jenkins', color: '#439FE0', message: 'Initial Build Successful'
43
+ }
44
35
45
46
0 commit comments