1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should follow and complete all steps: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
5 exports[`should follow and complete all steps: Dart: bitbucket-pipelines.yml 1`] = `
6 "image: ghcr.io/cirruslabs/flutter:stable
11 name: Build the project, and run the SonarQube analysis
13 - <commands to build your project>
14 - export SONAR_SCANNER_VERSION=6.1.0.4477
16 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
17 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
18 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
36 exports[`should follow and complete all steps: .NET: bitbucket-pipelines.yml 1`] = `
37 "image: mcr.microsoft.com/dotnet/sdk:7.0
42 name: SonarQube analysis
47 - dotnet tool install --global dotnet-sonarscanner
48 - export PATH="$PATH:/root/.dotnet/tools"
49 - dotnet sonarscanner begin /k:"my-project" /d:"sonar.token=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
51 - dotnet sonarscanner end /d:"sonar.token=\${SONAR_TOKEN}"
65 exports[`should follow and complete all steps: C++ (automatic) and other: .github/workflows/build.yml 1`] = `
71 name: SonarQube analysis
73 - pipe: sonarsource/sonarqube-scan:2.0.1
75 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
76 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
94 exports[`should follow and complete all steps: C++ (automatic) and other: bitbucket-pipelines.yml 1`] = `
100 name: SonarQube analysis
102 - pipe: sonarsource/sonarqube-scan:2.0.1
104 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
105 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
123 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
125 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 2`] = `"sonar.projectKey=my-project"`;
127 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 1`] = `
128 "image: <image ready for your build toolchain>
133 name: Build the project, and run the SonarQube analysis
135 - export SONAR_SCANNER_VERSION=6.1.0.4477
137 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
138 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
139 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-aarch64.zip
140 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
141 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-aarch64/bin"
142 - <any step required before running your build, like ./configure>
143 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
144 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
161 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
163 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
165 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 2`] = `
166 "image: <image ready for your build toolchain>
171 name: Build the project, and run the SonarQube analysis
173 - export SONAR_SCANNER_VERSION=6.1.0.4477
175 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
176 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
177 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-aarch64.zip
178 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
179 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-aarch64/bin"
180 - <any step required before running your build, like ./configure>
181 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
182 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
199 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 1`] = `
200 "image: <image ready for your build toolchain>
205 name: Build the project, and run the SonarQube analysis
207 - export SONAR_SCANNER_VERSION=6.1.0.4477
209 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
210 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
211 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
212 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
213 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
214 - <any step required before running your build, like ./configure>
215 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
216 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
233 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
235 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
237 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 2`] = `
238 "image: <image ready for your build toolchain>
243 name: Build the project, and run the SonarQube analysis
245 - export SONAR_SCANNER_VERSION=6.1.0.4477
247 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
248 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
249 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
250 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
251 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
252 - <any step required before running your build, like ./configure>
253 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
254 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
271 exports[`should follow and complete all steps: Gradle: bitbucket-pipelines.yml 1`] = `
272 "image: eclipse-temurin:17
277 name: SonarQube analysis
282 - bash ./gradlew sonar
299 exports[`should follow and complete all steps: Groovy: build.gradle 1`] = `
301 id "org.sonarqube" version "5.1.0.4882"
306 property "sonar.projectKey", "my-project"
307 property "sonar.projectName", "MyProject"
312 exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = `
314 id("org.sonarqube") version "5.1.0.4882"
319 property("sonar.projectKey", "my-project")
320 property("sonar.projectName", "MyProject")
325 exports[`should follow and complete all steps: Maven: bitbucket-pipelines.yml 1`] = `
326 "image: maven:3-eclipse-temurin-17
331 name: SonarQube analysis
336 - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
353 exports[`should follow and complete all steps: sonar token key 1`] = `"SONAR_TOKEN"`;
355 exports[`should follow and complete all steps: sonarqube host url key 1`] = `"SONAR_HOST_URL"`;
357 exports[`should follow and complete all steps: sonarqube host url value 1`] = `"http://localhost:9000"`;