Skip to content

Commit

Permalink
Update Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainshareef authored Nov 20, 2023
1 parent 22f996f commit a253932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Maven
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stage('Build and Test') {
steps {
sh 'ls -ltr'
// build the project and create a JAR file
sh 'cd pom.xml && mvn clean package'
sh 'cat pom.xml && mvn clean package'
}
}
stage('Static Code Analysis') {
Expand All @@ -25,7 +25,7 @@ stage('Static Code Analysis') {
}
steps {
withCredentials([string(credentialsId: 'sonarqube', variable: 'SONAR_AUTH_TOKEN')]) {
sh 'cd pom.xml && mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=${SONAR_URL}'
sh 'cat pom.xml && mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=${SONAR_URL}'
}
}
}
Expand Down

0 comments on commit a253932

Please sign in to comment.