Skip to content

Commit

Permalink
ci: remove debug, re enable status notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
endorama committed Jun 16, 2022
1 parent ea154ee commit ba51733
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,30 +72,28 @@ pipeline {
options { skipDefaultCheckout() }
when { tag pattern: 'v\\d+\\.\\d+\\.\\d+.*', comparator: 'REGEXP' }
steps {
sh 'ls -alh'
deleteDir()
unstash 'source'
dir("${BASE_DIR}"){
sh 'ls -alh'
withGoEnv() {
sh 'go install github.com/goreleaser/[email protected]'
withCredentials([string(credentialsId: "${env.GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
sh 'ls -alh'
// Ensure that tags are present so goreleaser can build the changelog from the last release.
gitCmd(cmd: 'fetch', args: '--unshallow --tags')
sh(label: 'goreleaser', script: 'goreleaser release')
}
}
}
}
// post {
// failure {
// notifyStatus(slackStatus: 'danger', subject: "[${env.REPO}] Release *${env.TAG_NAME}* failed", body: "Build: (<${env.RUN_DISPLAY_URL}|here>)")
// }
// success {
// notifyStatus(slackStatus: 'good', subject: "[${env.REPO}] Release *${env.TAG_NAME}* published", body: "Build: (<${env.RUN_DISPLAY_URL}|here>)\nRepo URL: ${env.REPO_URL?.trim()}")
// }
// }
post {
failure {
notifyStatus(slackStatus: 'danger', subject: "[${env.REPO}] Release *${env.TAG_NAME}* failed", body: "Build: (<${env.RUN_DISPLAY_URL}|here>)")
}
success {
notifyStatus(slackStatus: 'good', subject: "[${env.REPO}] Release *${env.TAG_NAME}* published",
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>")
}
}
}
}
post {
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# elastic-agent-changelog-tool
Tooling to manage the changelog for beats, Elastic Agent and Fleet Server

[CI activity](https://beats-ci.elastic.co/blue/organizations/jenkins/elastic-agent-changelog-tool-mbp/activity)

## Requirements

`git` CLI should be installed and available.
Expand Down

0 comments on commit ba51733

Please sign in to comment.