mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
added docker stage
This commit is contained in:
parent
47798adc58
commit
43b55f1f92
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -26,7 +26,7 @@ pipeline {
|
|||
// Run Maven with SonarQube plugin for analysis
|
||||
withSonarQubeEnv('SonarQubeScanner') {
|
||||
sh """
|
||||
mvn sonar:sonar -Dsonar.login=${SONAR_AUTH_TOKEN} \
|
||||
mvn sonar:sonar -Dsonar.login="${SONAR_AUTH_TOKEN}" \
|
||||
-Dsonar.projectName=spring-petclinic \
|
||||
-Dsonar.java.binaries=. \
|
||||
-Dsonar.projectKey=spring-petclinic
|
||||
|
@ -66,7 +66,7 @@ pipeline {
|
|||
|
||||
steps {
|
||||
script {
|
||||
withDockerRegistry(credentialsId: 'DOCKER_REGISTRY_CREDENTIALS',registryUrl: "https://hub.docker.com/") {
|
||||
withDockerRegistry(credentialsId:"${DOCKER_REGISTRY_CREDENTIALS}" ,registryUrl: "https://hub.docker.com/") {
|
||||
sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} ."
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue