Skip to content
Snippets Groups Projects
Commit 5fe34886 authored by 김영훈's avatar 김영훈
Browse files

Update Jenkinsfile

parent 9105b97f
No related branches found
No related tags found
No related merge requests found
pipeline { pipeline {
agent any agent any
environment {
userId = "KYH"
}
stages { stages {
stage('Prepare'){ stage('Prepare'){
agent any agent any
...@@ -12,6 +15,8 @@ pipeline { ...@@ -12,6 +15,8 @@ pipeline {
} }
always{ always{
echo 'done prepare' echo 'done prepare'
slackSend (channel: '#devops', color: '#FFFF00'),
message: "${env.userId}" STARTED:Job '${env.JOB_NAME}' [$(env.BUILD_NUMBER)](${env.BUILD_URL})
} }
cleanup{ cleanup{
echo 'after all other post conditions' echo 'after all other post conditions'
...@@ -26,6 +31,11 @@ pipeline { ...@@ -26,6 +31,11 @@ pipeline {
success{ success{
echo 'maven build success' echo 'maven build success'
} }
always{
echo 'done maven build'
slackSend (channel: '#devops', color: '#FFFF00'),
message: "${env.userId}" STARTED:Job '${env.JOB_NAME}' [$(env.BUILD_NUMBER)](${env.BUILD_URL})
}
} }
failure { failure {
echo 'maven build failed' echo 'maven build failed'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment