Skip to content

Commit

Permalink
reduce slack build messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhin-s committed Dec 15, 2021
1 parent 90c0da1 commit 8735447
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ spec:
expression { BRANCH_NAME ==~ /(develop|staging|master)/ }
}
steps {
slackSend (channel: "#${slackChannel}", color: '#FF9800', message: "*HTTP API*: Build started <${env.BUILD_URL}|#${env.BUILD_NUMBER}> commit ${env.GIT_COMMIT[0..6]} on ${env.BRANCH_NAME}")
container(name: 'kaniko') {
sh """
/kaniko/executor --snapshotMode=redo --use-new-run=true --cache=true --cache-repo=${ECR}/${APIHTTP}_${PHASE} --dockerfile `pwd`/build/Dockerfile --context `pwd` --destination=${ECR}/${APIHTTP}_${PHASE}:latest --destination=${ECR}/${APIHTTP}_${PHASE}:$BUILD_NUMBER
Expand All @@ -46,7 +45,6 @@ spec:
}
post {
success {
slackSend (channel: "#${slackChannel}", color: '#3380C7', message: "*HTTP/MQTT API*: Image built on build <${env.BUILD_URL}|#${env.BUILD_NUMBER}>")
echo 'Compile Stage Successful'
}
failure {
Expand Down

0 comments on commit 8735447

Please sign in to comment.