environment test
This commit is contained in:
parent
134055ed8b
commit
4ff78a1c6a
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -72,7 +72,7 @@ podTemplate(
|
|||
usernameVariable: 'HARBOR_USER',
|
||||
passwordVariable: 'HARBOR_PASSWORD']]) {
|
||||
sh """
|
||||
docker login -u "robot\$devops" -p "${HARBOR_PASSWORD}" ${docker_registry_url}
|
||||
docker login -u "${HARBOR_USER}" -p "${HARBOR_PASSWORD}" ${docker_registry_url}
|
||||
docker build -t ${docker_registry_url}/prototype/cicd-java-spring-boot:${gitCommit} -f Dockerfile.arg --build-arg JAR_NAME="cicd-${gitCommit}.jar" .
|
||||
docker push ${docker_registry_url}/prototype/cicd-java-spring-boot:${gitCommit}
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user