From f939c34b5c66bea6125ca5009d88ccf369cb2cc5 Mon Sep 17 00:00:00 2001 From: mtojek Date: Fri, 16 Jul 2021 09:22:38 +0200 Subject: [PATCH 1/2] Enable goreleaser to release binaries --- .ci/Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 6c7ee93346..193e4f9d5a 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -7,6 +7,7 @@ pipeline { environment { BASE_DIR="src/github.com/elastic/elastic-package" JOB_GIT_CREDENTIALS = "f6c7695a-671e-4f4f-a331-acdce44ff9ba" + GITHUB_TOKEN_CREDENTIALS = "2a9602aa-ab9f-4e52-baf3-b71ca88469c7" PIPELINE_LOG_LEVEL='INFO' AWS_ACCOUNT_SECRET = 'secret/observability-team/ci/elastic-observability-aws-account-auth' HOME = "${env.WORKSPACE}" @@ -67,6 +68,16 @@ pipeline { } } } + stage('Release') { + when { + buildingTag() + } + steps { + withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) { + sh 'curl -sL https://git.io/goreleaser | bash' + } + } + } } post { cleanup { From 7cb1223f3daff6a75f01c30d55528ea8c1fee72d Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Fri, 16 Jul 2021 10:34:20 +0200 Subject: [PATCH 2/2] Update .ci/Jenkinsfile Co-authored-by: Victor Martinez --- .ci/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 193e4f9d5a..b627b9c831 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -70,7 +70,7 @@ pipeline { } stage('Release') { when { - buildingTag() + tag pattern: '(v)?\\d+\\.\\d+\\.\\d+', comparator: 'REGEXP' } steps { withCredentials([string(credentialsId: "${GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {