Skip to content

Commit ab98542

Browse files
committed
Updated the commands
1 parent db641a8 commit ab98542

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/content-service-pr-check.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ jobs:
3131
run: |
3232
mvn clean install -DskipTests -DCLOUD_STORE_GROUP_ID=org.sunbird -DCLOUD_STORE_ARTIFACT_ID=cloud-store-sdk_2.12 -DCLOUD_STORE_VERSION=1.4.7.2
3333
cd content-api/content-service/
34-
mvn clean test \
35-
org.jacoco:jacoco-maven-plugin:0.8.8:prepare-agent \
36-
test \
37-
org.jacoco:jacoco-maven-plugin:0.8.8:report
34+
mvn clean test org.jacoco:jacoco-maven-plugin:0.8.8:prepare-agent test org.jacoco:jacoco-maven-plugin:0.8.8:report -DCLOUD_STORE_GROUP_ID=org.sunbird -DCLOUD_STORE_ARTIFACT_ID=cloud-store-sdk_2.12 -DCLOUD_STORE_VERSION=1.4.7.2
3835
3936
- name: Upload Test Results
4037
if: always()
@@ -61,14 +58,12 @@ jobs:
6158
-DCLOUD_STORE_GROUP_ID=org.sunbird \
6259
-DCLOUD_STORE_ARTIFACT_ID=cloud-store-sdk_2.12 \
6360
-DCLOUD_STORE_VERSION=1.4.7.2 \
64-
-Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }} \
65-
-Dsonar.organization=${{ github.repository_owner }} \
61+
-Dsonar.projectKey=vinodbhorge \
62+
-Dsonar.organization=vinodbhorge \
6663
-Dsonar.host.url=https://sonarcloud.io \
67-
-Dsonar.java.binaries=content-api/content-service/target/classes \
6864
-Dsonar.coverage.jacoco.xmlReportPaths=content-api/content-service/target/site/jacoco/jacoco.xml \
69-
-Dsonar.sourceEncoding=UTF-8 \
70-
-Dsonar.sources=content-api/content-service/src/main \
71-
-Dsonar.tests=content-api/content-service/src/test
65+
-Dsonar.token=$SONAR_TOKEN
66+
7267
7368
- name: Comment PR with SonarQube Results
7469
uses: actions/github-script@v6

0 commit comments

Comments
 (0)