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 {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
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 @@
<name>${imageName}:${env.BRANCH_NAME}-${project.version}</name>
<publish>true</publish>
</image>
<docker>
<publishRegistry>
<username>${user}</username>
<password>${password}</password>
<username>${docker.publishRegistry.username}</username>
<password>${docker.publishRegistry.password}</password>
</publishRegistry>
</docker>
<excludes>
<exclude>
<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