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

OZG-4792 Image password Login

parent 1bb8bc02
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 -Ddocker.publishRegistry.username=${USER} -Ddocker.publishRegistry.password=${PASSWORD}' sh 'mvn -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3 $BUILD_PROFILE -Duser=${USER} -Dpassword=${PASSWORD}'
} }
} }
} }
......
...@@ -101,8 +101,8 @@ ...@@ -101,8 +101,8 @@
<publish>true</publish> <publish>true</publish>
</image> </image>
<publishRegistry> <publishRegistry>
<username>${docker.publishRegistry.username}</username> <username>${user}</username>
<password>${docker.publishRegistry.password}</password> <password>${password}</password>
</publishRegistry> </publishRegistry>
<excludes> <excludes>
<exclude> <exclude>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment