diff --git a/Jenkinsfile b/Jenkinsfile index 1f8af05ef243dd8bc473f8bcf1f3bde472e3579e..e2261d010592ff18c5599b64d12a5f377cef53c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { agent any + environment { + userId = "KYH" + } stages { stage('Prepare'){ agent any @@ -12,6 +15,8 @@ pipeline { } always{ echo 'done prepare' + slackSend (channel: '#devops', color: '#FFFF00'), + message: "${env.userId}" STARTED:Job '${env.JOB_NAME}' [$(env.BUILD_NUMBER)](${env.BUILD_URL}) } cleanup{ echo 'after all other post conditions' @@ -26,6 +31,11 @@ pipeline { 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 { echo 'maven build failed'