Skip to content

Commit ba51733

Browse files
committed
ci: remove debug, re enable status notifications
1 parent ea154ee commit ba51733

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.ci/Jenkinsfile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,28 @@ pipeline {
7272
options { skipDefaultCheckout() }
7373
when { tag pattern: 'v\\d+\\.\\d+\\.\\d+.*', comparator: 'REGEXP' }
7474
steps {
75-
sh 'ls -alh'
7675
deleteDir()
7776
unstash 'source'
7877
dir("${BASE_DIR}"){
79-
sh 'ls -alh'
8078
withGoEnv() {
8179
sh 'go install github.com/goreleaser/[email protected]'
8280
withCredentials([string(credentialsId: "${env.GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
83-
sh 'ls -alh'
8481
// Ensure that tags are present so goreleaser can build the changelog from the last release.
8582
gitCmd(cmd: 'fetch', args: '--unshallow --tags')
8683
sh(label: 'goreleaser', script: 'goreleaser release')
8784
}
8885
}
8986
}
9087
}
91-
// post {
92-
// failure {
93-
// notifyStatus(slackStatus: 'danger', subject: "[${env.REPO}] Release *${env.TAG_NAME}* failed", body: "Build: (<${env.RUN_DISPLAY_URL}|here>)")
94-
// }
95-
// success {
96-
// notifyStatus(slackStatus: 'good', subject: "[${env.REPO}] Release *${env.TAG_NAME}* published", body: "Build: (<${env.RUN_DISPLAY_URL}|here>)\nRepo URL: ${env.REPO_URL?.trim()}")
97-
// }
98-
// }
88+
post {
89+
failure {
90+
notifyStatus(slackStatus: 'danger', subject: "[${env.REPO}] Release *${env.TAG_NAME}* failed", body: "Build: (<${env.RUN_DISPLAY_URL}|here>)")
91+
}
92+
success {
93+
notifyStatus(slackStatus: 'good', subject: "[${env.REPO}] Release *${env.TAG_NAME}* published",
94+
body: "Build: (<${env.RUN_DISPLAY_URL}|here>)\n<${env.REPO_URL?.trim()}|Go to repo> <${env.REPO_URL?.trim()}/releases/tag/${env.TAG_NAME}|Go to release>")
95+
}
96+
}
9997
}
10098
}
10199
post {

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# elastic-agent-changelog-tool
22
Tooling to manage the changelog for beats, Elastic Agent and Fleet Server
33

4+
[CI activity](https://beats-ci.elastic.co/blue/organizations/jenkins/elastic-agent-changelog-tool-mbp/activity)
5+
46
## Requirements
57

68
`git` CLI should be installed and available.

0 commit comments

Comments
 (0)