From b39ae10d51daa8f0313d33d60cad84cdaa4b3562 Mon Sep 17 00:00:00 2001 From: hussainshareef <114469176+hussainshareef@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:21:49 +0530 Subject: [PATCH] Update Maven --- Maven | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}' } } }