From 753199517c45b83f0112667692df715822d22ec0 Mon Sep 17 00:00:00 2001 From: abidknashtech <127501072+abidknashtech@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:54:04 +0530 Subject: [PATCH] Update car-demo-updated-pipeline.yml --- .github/workflows/car-demo-updated-pipeline.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/car-demo-updated-pipeline.yml b/.github/workflows/car-demo-updated-pipeline.yml index bf251e6..f04d8a4 100644 --- a/.github/workflows/car-demo-updated-pipeline.yml +++ b/.github/workflows/car-demo-updated-pipeline.yml @@ -36,8 +36,10 @@ jobs: #cd $repo car-demo/$repo || exit 1 #mvn clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=nashtech -Dsonar.projectKey=$repo -Dsonar.branch.name=main -Dsonar.login=${{ secrets.SONAR_TOKEN }} -X - mvn clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=nashtech - cd .. + #mvn clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=nashtech + repo_path="car-demo/$repo" + mvn -f $repo_path clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=nashtech -Dsonar.projectKey=$repo -Dsonar.branch.name=main -Dsonar.login=${{ secrets.SONAR_TOKEN }} -X + #cd .. done env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}