0

I want to run the SonarCube report from my project from jenkinsfile. I am using below stage to run sonarcube report.

stage('SonarQube Code QualityCheck') {
        steps {           
            bat 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'            
            }
     } 

But it shows error as "missing pom.xml file" by default it is looking for pom.xml file on root folder. But for my project I had to go one folder inside(of root folder) to get the pom.xml. I Want to navigate one folder inside and then use the sonarcube run but not getting exactly where need to update in given bat command.

Help is really appritiated.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.