| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 97894a1 commit a8cb9a1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,14 +12,14 @@ pipeline { | |||
| 12 | 12 | GIT_COMMIT_SHORT = sh(returnStdout: true, script:"git rev-parse --short=7 HEAD").trim() | |
| 13 | 13 | GIT_COMMIT_SUBJECT = sh(returnStdout: true, script:"git log --format=%s -n 1 HEAD").trim() | |
| 14 | 14 | GIT_COMMIT_AUTHOR = sh(returnStdout: true, script:"git log --format='%an' -n 1 HEAD").trim() | |
| 15 | - GIT_COMMIT_SUMMARY = "${GIT_BRANCH} `<https://github.com/Kaggle/kaggle-python/commit/${GIT_COMMIT}|${GIT_COMMIT_SHORT}>` ${GIT_COMMIT_SUBJECT} - ${GIT_COMMIT_AUTHOR}" | ||
| 15 | + GIT_COMMIT_SUMMARY = "`<https://github.com/Kaggle/kaggle-python/commit/${GIT_COMMIT}|${GIT_COMMIT_SHORT}>` ${GIT_COMMIT_SUBJECT} - ${GIT_COMMIT_AUTHOR}" | ||
| 16 | 16 | SLACK_CHANNEL = sh(returnStdout: true, script: "if [[ \"${GIT_BRANCH}\" == \"master\" ]]; then echo \"#kernels\"; else echo \"#builds\"; fi").trim() | |
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | stages { | |
| 20 | 20 | stage('Docker Build') { | |
| 21 | 21 | steps { | |
| 22 | - slackSend color: 'none', message: "*<${env.BUILD_URL}console|docker build>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 22 | + slackSend color: 'none', message: "*<${env.BUILD_URL}console|${JOB_NAME} docker build>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 23 | 23 | sh '''#!/bin/bash | |
| 24 | 24 | set -exo pipefail | |
| 25 | 25 | ||
@@ -30,7 +30,7 @@ pipeline { | |||
| 30 | 30 | ||
| 31 | 31 | stage('Test Image') { | |
| 32 | 32 | steps { | |
| 33 | - slackSend color: 'none', message: "*<${env.BUILD_URL}console|test image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 33 | + slackSend color: 'none', message: "*<${env.BUILD_URL}console|${JOB_NAME} test image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 34 | 34 | sh '''#!/bin/bash | |
| 35 | 35 | set -exo pipefail | |
| 36 | 36 | ||
@@ -42,7 +42,7 @@ pipeline { | |||
| 42 | 42 | ||
| 43 | 43 | stage('Push Image') { | |
| 44 | 44 | steps { | |
| 45 | - slackSend color: 'none', message: "*<${env.BUILD_URL}console|pushing image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 45 | + slackSend color: 'none', message: "*<${env.BUILD_URL}console|${JOB_NAME} pushing image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 46 | 46 | sh '''#!/bin/bash | |
| 47 | 47 | set -exo pipefail | |
| 48 | 48 | ||
@@ -55,13 +55,13 @@ pipeline { | |||
| 55 | 55 | ||
| 56 | 56 | post { | |
| 57 | 57 | failure { | |
| 58 | - slackSend color: 'danger', message: "*<${env.BUILD_URL}console|failed>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 58 | + slackSend color: 'danger', message: "*<${env.BUILD_URL}console|${JOB_NAME} failed>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 59 | 59 | } | |
| 60 | 60 | success { | |
| 61 | - slackSend color: 'good', message: "*<${env.BUILD_URL}console|passed>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 61 | + slackSend color: 'good', message: "*<${env.BUILD_URL}console|${JOB_NAME} passed>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 62 | 62 | } | |
| 63 | 63 | aborted { | |
| 64 | - slackSend color: 'warning', message: "*<${env.BUILD_URL}console|aborted>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 64 | + slackSend color: 'warning', message: "*<${env.BUILD_URL}console|${JOB_NAME} aborted>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 65 | 65 | } | |
| 66 | 66 | } | |
| 67 | 67 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments