environment test

This commit is contained in:
crusader 2023-02-01 15:05:16 +00:00
parent 22aa725630
commit 85f5b778e8

2
Jenkinsfile vendored
View File

@ -77,7 +77,7 @@ podTemplate(
passwordVariable: 'HARBOR_PASSWORD']]) {
sh """
docker login -u "${HARBOR_USER}" -p "${HARBOR_PASSWORD}" ${docker_registry_url}
docker build -t ${docker_registry_url}/prototype/cicd-java-spring-boot:${app_version} --build-arg JAR_NAME="cicd-${app_version}.jar" .
docker build -t ${docker_registry_url}/prototype/cicd-java-spring-boot:${app_version} --build-arg JAR_NAME=cicd-${app_version}.jar .
docker push ${docker_registry_url}/prototype/cicd-java-spring-boot:${app_version}
"""
}