diff --git a/Jenkinsfile b/Jenkinsfile index 6895e3f8c..b08f330ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -112,6 +112,7 @@ pipeline { branch 'master' beforeAgent true } + post { failure { slackSend color: '#cb2431' , channel: '#iele-internal' , message: "Packaging Phase Failed: ${env.BUILD_URL}" } } stages { stage('Build Package') { agent { @@ -160,6 +161,7 @@ pipeline { branch 'master' beforeAgent true } + post { failure { slackSend color: '#cb2431' , channel: '#iele-internal' , message: "Packaging Phase Failed: ${env.BUILD_URL}" } } environment { DOCKERHUB_TOKEN = credentials('rvdockerhub') BIONIC_COMMIT_TAG = "ubuntu-bionic-${env.SHORT_REV}" @@ -243,7 +245,7 @@ pipeline { agent { dockerfile { label 'docker' - additionalBuildArgs '--build-arg K_COMMIT=$(cat deps/k_release | cut --delimiter="-" --field="2") --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g)' + additionalBuildArgs '--build-arg K_COMMIT=${K_VERSION} --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g)' } } post { failure { slackSend color: '#cb2431' , channel: '#iele-internal' , message: "Deploy Phase Failed: ${env.BUILD_URL}" } }