Skip to content

Commit bf87591

Browse files
Update Jenkinsfile
1 parent feafd93 commit bf87591

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Diff for: Jenkinsfile

+15-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ env
1010
}
1111

1212
}
13-
}
13+
post {
14+
always {
15+
// This will always run, even if the pipeline fails
16+
echo 'This will always run'
17+
}
18+
success {
19+
// This will only run if the pipeline was successful
20+
echo 'This will run only if the pipeline was successful'
21+
}
22+
failure {
23+
// This will only run if the pipeline failed
24+
echo 'This will run only if the pipeline failed'
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)