Skip to content

Commit

Permalink
SONAR-23139 Java is not needed anymore to use the Scanner for .Net
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju authored and sonartech committed Sep 26, 2024
1 parent 9b70434 commit 532aab1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ definitions:
- dotnetcore
- sonar
script:
- apt-get update
- apt-get install --yes --no-install-recommends openjdk-17-jre
- dotnet tool install --global dotnet-sonarscanner
- export PATH="$PATH:/root/.dotnet/tools"
- dotnet sonarscanner begin /k:"my-project" /d:"sonar.token=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ definitions:
- dotnetcore
- sonar
script:
- apt-get update
- apt-get install --yes --no-install-recommends openjdk-17-jre
- dotnet tool install --global dotnet-sonarscanner
- export PATH="$PATH:/root/.dotnet/tools"
- dotnet sonarscanner begin /k:"${projectKey}" /d:"sonar.token=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ sonarqube-check:
stage: sonarqube-check
script:
- "apt-get update"
- "apt-get install --yes --no-install-recommends openjdk-17-jre"
- "dotnet tool install --global dotnet-sonarscanner"
- "export PATH=\\"$PATH:$HOME/.dotnet/tools\\""
- "dotnet sonarscanner begin /k:\\"my-project\\" /d:sonar.token=\\"$SONAR_TOKEN\\" /d:\\"sonar.host.url=$SONAR_HOST_URL\\" "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const BUILD_TOOL_SPECIFIC: {
[BuildTools.DotNet]: {
image: 'mcr.microsoft.com/dotnet/sdk:7.0',
script: (projectKey: string) => `
- "apt-get update"
- "apt-get install --yes --no-install-recommends openjdk-17-jre"
- "dotnet tool install --global dotnet-sonarscanner"
- "export PATH=\\"$PATH:$HOME/.dotnet/tools\\""
- "dotnet sonarscanner begin /k:\\"${projectKey}\\" /d:sonar.token=\\"$SONAR_TOKEN\\" /d:\\"sonar.host.url=$SONAR_HOST_URL\\" "
Expand Down

0 comments on commit 532aab1

Please sign in to comment.