Update sonarqube.yml
This commit is contained in:
parent
3c71f4f524
commit
3dc71fd997
|
|
@ -3,8 +3,6 @@ name: SonarQube Analysis
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "dev_odex25_hr" ]
|
branches: [ "dev_odex25_hr" ]
|
||||||
pull_request:
|
|
||||||
branches: [ "dev_odex25_hr" ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonar:
|
sonar:
|
||||||
|
|
@ -15,9 +13,16 @@ jobs:
|
||||||
|
|
||||||
- name: Run SonarScanner
|
- name: Run SonarScanner
|
||||||
run: |
|
run: |
|
||||||
|
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
|
||||||
|
SAFE_BRANCH_NAME="${BRANCH_NAME//\//_}"
|
||||||
|
PROJECT_KEY="odex25_standard_modules_${SAFE_BRANCH_NAME}"
|
||||||
|
PROJECT_NAME="Standard Modules ${SAFE_BRANCH_NAME}"
|
||||||
|
SOURCE_FOLDER_NAME="${BRANCH_NAME#master_}"
|
||||||
|
|
||||||
sonar-scanner \
|
sonar-scanner \
|
||||||
-Dsonar.projectKey=odex25_standard_modules_dev_odex25_hr \
|
-Dsonar.projectKey="$PROJECT_KEY" \
|
||||||
-Dsonar.sources=odex25_hr \
|
-Dsonar.projectName="$PROJECT_NAME" \
|
||||||
|
-Dsonar.sources="$SOURCE_FOLDER_NAME" \
|
||||||
-Dsonar.host.url="https://sonar.odex.sa" \
|
-Dsonar.host.url="https://sonar.odex.sa" \
|
||||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
|
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue