Skip to content

Commit

Permalink
Per #429, push to a single METplotpy SonarQube project
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Apr 19, 2024
1 parent a916f3d commit 56fde26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/jobs/configure_sonarqube.sh
Expand Up @@ -47,9 +47,7 @@ fi

# Configure the sonar-project.properties
[ -e $SONAR_PROPERTIES ] && rm $SONAR_PROPERTIES
sed -e "s|SONAR_PROJECT_KEY|METplotpy-GHA|" \
-e "s|SONAR_PROJECT_NAME|METplotpy GHA|" \
-e "s|SONAR_PROJECT_VERSION|$SONAR_PROJECT_VERSION|" \
sed -e "s|SONAR_PROJECT_VERSION|$SONAR_PROJECT_VERSION|" \
-e "s|SONAR_HOST_URL|$SONAR_HOST_URL|" \
-e "s|SONAR_TOKEN|$SONAR_TOKEN|" \
-e "s|SONAR_BRANCH_NAME|$SOURCE_BRANCH|" \
Expand Down
4 changes: 1 addition & 3 deletions internal/scripts/sonarqube/run_sonarqube.sh
Expand Up @@ -118,9 +118,7 @@ SONAR_PROPERTIES=sonar-project.properties

# Configure the sonar-project.properties
[ -e $SONAR_PROPERTIES ] && rm $SONAR_PROPERTIES
sed -e "s|SONAR_PROJECT_KEY|METplotpy_NB|" \
-e "s|SONAR_PROJECT_NAME|METplotpy Nightly Build|" \
-e "s|SONAR_PROJECT_VERSION|$SONAR_PROJECT_VERSION|" \
sed -e "s|SONAR_PROJECT_VERSION|$SONAR_PROJECT_VERSION|" \
-e "s|SONAR_HOST_URL|$SONAR_HOST_URL|" \
-e "s|SONAR_TOKEN|$SONAR_TOKEN|" \
-e "s|SONAR_BRANCH_NAME|${1}|" \
Expand Down
4 changes: 2 additions & 2 deletions internal/scripts/sonarqube/sonar-project.properties
@@ -1,6 +1,6 @@
# Project and source code settings
sonar.projectKey=SONAR_PROJECT_KEY
sonar.projectName=SONAR_PROJECT_NAME
sonar.projectKey=METplotpy
sonar.projectName=METplotpy
sonar.projectVersion=SONAR_PROJECT_VERSION
sonar.branch.name=SONAR_BRANCH_NAME
sonar.sources=metplotpy,test
Expand Down

0 comments on commit 56fde26

Please sign in to comment.