Skip to content

Commit 6d0d6d8

Browse files
committed
Adding PR Analysis
1 parent d1bc461 commit 6d0d6d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/pr-flow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
- name: PR-BUILD
1717
run: |
1818
cd initial
19-
export CHANGE_BRANCH=`echo "${{ github.repository }}" | awk -F "/" '{print $2}'`
19+
export CHANGE_BRANCH=`echo ${GITHUB_REF##*/}`
2020
export CHANGE_ID=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
21-
echo "$CHANGE_ID"
22-
echo "$CHANGE_BRANCH"
21+
bash ./gradlew sonarqube -Dsonar.pullrequest.branch=${CHANGE_BRANCH} -Dsonar.pullrequest.base=development -Dsonar.pullrequest.key=${CHANGE_ID} showSonarQubeLink --info
2322
bash ./gradlew -Pbuild_target=SNAPSHOT clean build jacocoTestReport spotlessApply spotbugsMain

0 commit comments

Comments
 (0)