Skip to content
Snippets Groups Projects
Commit 463b61ae authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4792 Added missing docker tag in pom.xml

parent b288b64a
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ pipeline { ...@@ -78,7 +78,7 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
sh 'mvn -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3 $BUILD_PROFILE -Duser=${USER} -Dpassword=${PASSWORD}' sh 'mvn -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3 $BUILD_PROFILE -Ddocker.publishRegistry.username=${USER} -Ddocker.publishRegistry.password=${PASSWORD}'
} }
} }
} }
......
...@@ -100,10 +100,12 @@ ...@@ -100,10 +100,12 @@
<name>${imageName}:${env.BRANCH_NAME}-${project.version}</name> <name>${imageName}:${env.BRANCH_NAME}-${project.version}</name>
<publish>true</publish> <publish>true</publish>
</image> </image>
<docker>
<publishRegistry> <publishRegistry>
<username>${user}</username> <username>${docker.publishRegistry.username}</username>
<password>${password}</password> <password>${docker.publishRegistry.password}</password>
</publishRegistry> </publishRegistry>
</docker>
<excludes> <excludes>
<exclude> <exclude>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment