1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should follow and complete all steps: .NET: bitbucket-pipelines.yml 1`] = `
4 "image: mcr.microsoft.com/dotnet/sdk:7.0
9 name: SonarQube analysis
15 - apt-get install --yes --no-install-recommends openjdk-17-jre
16 - dotnet tool install --global dotnet-sonarscanner
17 - export PATH="$PATH:/root/.dotnet/tools"
18 - dotnet sonarscanner begin /k:"my-project" /d:"sonar.token=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
20 - dotnet sonarscanner end /d:"sonar.token=\${SONAR_TOKEN}"
34 exports[`should follow and complete all steps: C++ (automatic) and other: .github/workflows/build.yml 1`] = `
40 name: SonarQube analysis
42 - pipe: sonarsource/sonarqube-scan:2.0.1
44 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
45 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
63 exports[`should follow and complete all steps: C++ (automatic) and other: bitbucket-pipelines.yml 1`] = `
69 name: SonarQube analysis
71 - pipe: sonarsource/sonarqube-scan:2.0.1
73 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
74 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
92 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
94 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 2`] = `"sonar.projectKey=my-project"`;
96 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 1`] = `
97 "image: <image ready for your build toolchain>
102 name: Build the project, and run the SonarQube analysis
104 - export SONAR_SCANNER_VERSION=5.0.1.3006
106 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
107 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
108 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}.zip
109 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
110 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}/bin"
111 - <any step required before running your build, like ./configure>
112 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
113 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
130 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
132 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
134 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 2`] = `
135 "image: <image ready for your build toolchain>
140 name: Build the project, and run the SonarQube analysis
142 - export SONAR_SCANNER_VERSION=5.0.1.3006
144 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
145 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
146 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}.zip
147 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
148 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}/bin"
149 - <any step required before running your build, like ./configure>
150 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
151 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
168 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 1`] = `
169 "image: <image ready for your build toolchain>
174 name: Build the project, and run the SonarQube analysis
176 - export SONAR_SCANNER_VERSION=5.0.1.3006
178 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
179 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
180 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux.zip
181 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
182 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin"
183 - <any step required before running your build, like ./configure>
184 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
185 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
202 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
204 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
206 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 2`] = `
207 "image: <image ready for your build toolchain>
212 name: Build the project, and run the SonarQube analysis
214 - export SONAR_SCANNER_VERSION=5.0.1.3006
216 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
217 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
218 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux.zip
219 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
220 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin"
221 - <any step required before running your build, like ./configure>
222 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
223 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
240 exports[`should follow and complete all steps: Gradle: bitbucket-pipelines.yml 1`] = `
241 "image: eclipse-temurin:17
246 name: SonarQube analysis
251 - bash ./gradlew sonar
268 exports[`should follow and complete all steps: Groovy: build.gradle 1`] = `
270 id "org.sonarqube" version "5.0.0.4638"
275 property "sonar.projectKey", "my-project"
276 property "sonar.projectName", "MyProject"
281 exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = `
283 id("org.sonarqube") version "5.0.0.4638"
288 property("sonar.projectKey", "my-project")
289 property("sonar.projectName", "MyProject")
294 exports[`should follow and complete all steps: Maven: bitbucket-pipelines.yml 1`] = `
295 "image: maven:3-eclipse-temurin-17
300 name: SonarQube analysis
305 - mvn verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
322 exports[`should follow and complete all steps: sonar token key 1`] = `"SONAR_TOKEN"`;
324 exports[`should follow and complete all steps: sonarqube host url key 1`] = `"SONAR_HOST_URL"`;
326 exports[`should follow and complete all steps: sonarqube host url value 1`] = `"http://localhost:9000"`;