environment test

This commit is contained in:
crusader 2023-02-01 14:19:54 +00:00
parent 7b09c8720a
commit b987f4706b

2
Jenkinsfile vendored
View File

@ -72,7 +72,7 @@ podTemplate(
usernameVariable: 'HARBOR_USER',
passwordVariable: 'HARBOR_PASSWORD']]) {
sh """
docker login -u ${HARBOR_USER} -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}
"""