mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:15:50 +00:00
fixed typo here too
This commit is contained in:
parent
271de8f395
commit
9b262d3511
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -28,10 +28,10 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
def branch = env.BRANCH_NAME
|
def branch = env.BRANCH_NAME
|
||||||
def dockerRepo = (branch == 'main') ? 'main' : 'mr'
|
def dockerRepo = (branch == 'main') ? 'main' : 'mr'
|
||||||
def imageTag = "${DOCKER_HUB_USER}/${repo}:${GIT_COMMIT_SHORT}"
|
def imageTag = "${DOCKER_HUB_USER}/${dockerRepo}:${GIT_COMMIT_SHORT}"
|
||||||
|
|
||||||
withCredentials([usernamePassword(
|
withCredentials([usernamePassword(
|
||||||
credentialsId: DOCKERHUB_CREDES,
|
credentialsId: DOCKERHUB_CREDS,
|
||||||
usernameVariable: 'DOCKER_USER',
|
usernameVariable: 'DOCKER_USER',
|
||||||
passwordVariable: 'DOCKER_PASS'
|
passwordVariable: 'DOCKER_PASS'
|
||||||
)]) {
|
)]) {
|
||||||
|
|
Loading…
Reference in a new issue