Skip to content

Commit

Permalink
chore(ci): fixing docker release step
Browse files Browse the repository at this point in the history
  • Loading branch information
saig0 committed Mar 30, 2020
1 parent e9ab1aa commit 4b5971c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pipeline {
GITHUB_TOKEN = credentials('camunda-jenkins-github')
RELEASE_VERSION = "${params.RELEASE_VERSION}"
DEVELOPMENT_VERSION = "${params.DEVELOPMENT_VERSION}"
DOCKER_HUB = credentials("camunda-dockerhub")
}

steps {
Expand All @@ -101,8 +102,7 @@ pipeline {
container('maven') {
configFileProvider([configFile(fileId: 'maven-nexus-settings-zeebe', variable: 'MAVEN_SETTINGS_XML')]) {
sshagent(['camunda-jenkins-github-ssh']) {
sh 'docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}'
sh 'mvn -pl app jib:build -Djib.to.tags=latest,${RELEASE_VERSION}'
sh 'mvn -pl app jib:build -Djib.to.tags=latest,${RELEASE_VERSION} -Djib.to.auth.username=${DOCKER_HUB_USR} -Djib.to.auth.password=${DOCKER_HUB_PSW}'
}
}
}
Expand Down

0 comments on commit 4b5971c

Please sign in to comment.