Skip to content

Commit 44ec286

Browse files
committed
ci: run docker login after and debug release
1 parent e50991a commit 44ec286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pipeline {
8787
goReleaser() {
8888
// Ensure that tags are present so goreleaser can build the changelog from the last release.
8989
gitCmd(cmd: 'fetch', args: '--unshallow --tags')
90-
sh(label: 'goreleaser release', script: 'goreleaser release')
90+
sh(label: 'goreleaser release', script: 'goreleaser release --debug')
9191
}
9292
}
9393
post {
@@ -122,10 +122,10 @@ def goReleaser(Closure body) {
122122
deleteDir()
123123
unstash 'source'
124124
dir("${BASE_DIR}"){
125-
dockerLogin(secret: "${DOCKER_ELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
126125
withGoEnv() {
127126
sh(label: 'install goreleaser', script: 'go install github.com/goreleaser/[email protected]')
128127
withCredentials([string(credentialsId: "${env.GITHUB_TOKEN_CREDENTIALS}", variable: 'GITHUB_TOKEN')]) {
128+
dockerLogin(secret: "${DOCKER_ELASTIC_SECRET}", registry: "${DOCKER_REGISTRY}")
129129
body()
130130
}
131131
}

0 commit comments

Comments
 (0)