diff --git a/Maven b/Maven index f7c7480..c5ccf82 100644 --- a/Maven +++ b/Maven @@ -16,7 +16,7 @@ stage('Build and Test') { steps { sh 'ls -ltr' // build the project and create a JAR file - sh 'cat Jenkins-AtoZ && mvn clean package' + sh 'cat pom.xml && mvn clean package' } } stage('Static Code Analysis') { @@ -25,7 +25,7 @@ stage('Static Code Analysis') { } steps { withCredentials([string(credentialsId: 'AbhiJenkins', variable: 'SONAR_AUTH_TOKEN')]) { - sh 'cat Jenkins-AtoZ && 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}' } } }