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
14 - dotnet tool install --global dotnet-sonarscanner
15 - export PATH="$PATH:/root/.dotnet/tools"
16 - dotnet sonarscanner begin /k:"my-project" /d:"sonar.token=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
18 - dotnet sonarscanner end /d:"sonar.token=\${SONAR_TOKEN}"
32 exports[`should follow and complete all steps: C++ (automatic) and other: .github/workflows/build.yml 1`] = `
37 name: SonarQube analysis
39 - pipe: sonarsource/sonarqube-scan:3.0.2
41 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
42 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
60 exports[`should follow and complete all steps: C++ (automatic) and other: bitbucket-pipelines.yml 1`] = `
65 name: SonarQube analysis
67 - pipe: sonarsource/sonarqube-scan:3.0.2
69 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
70 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
88 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
90 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 2`] = `"sonar.projectKey=my-project"`;
92 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 1`] = `
93 "image: <image ready for your build toolchain>
98 name: Build the project, and run the SonarQube analysis
100 - export SONAR_SCANNER_VERSION=6.2.0.4584
102 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
103 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
104 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-aarch64.zip
105 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
106 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-aarch64/bin"
107 - <any step required before running your build, like ./configure>
108 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
109 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
126 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
128 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
130 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 2`] = `
131 "image: <image ready for your build toolchain>
136 name: Build the project, and run the SonarQube analysis
138 - export SONAR_SCANNER_VERSION=6.2.0.4584
140 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
141 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
142 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-aarch64.zip
143 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
144 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-aarch64/bin"
145 - <any step required before running your build, like ./configure>
146 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
147 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
164 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 1`] = `
165 "image: <image ready for your build toolchain>
170 name: Build the project, and run the SonarQube analysis
172 - export SONAR_SCANNER_VERSION=6.2.0.4584
174 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
175 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
176 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
177 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
178 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
179 - <any step required before running your build, like ./configure>
180 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
181 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
198 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
200 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
202 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 2`] = `
203 "image: <image ready for your build toolchain>
208 name: Build the project, and run the SonarQube analysis
210 - export SONAR_SCANNER_VERSION=6.2.0.4584
212 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
213 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
214 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
215 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
216 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
217 - <any step required before running your build, like ./configure>
218 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
219 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
236 exports[`should follow and complete all steps: Dart: bitbucket-pipelines.yml 1`] = `
237 "image: ghcr.io/cirruslabs/flutter:stable
242 name: Build the project, and run the SonarQube analysis
244 - <commands to build your project>
245 - export SONAR_SCANNER_VERSION=6.2.0.4584
247 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
248 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
249 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
267 exports[`should follow and complete all steps: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
269 exports[`should follow and complete all steps: Gradle: bitbucket-pipelines.yml 1`] = `
270 "image: eclipse-temurin:17
275 name: SonarQube analysis
280 - bash ./gradlew sonar
297 exports[`should follow and complete all steps: Groovy: build.gradle 1`] = `
299 id "org.sonarqube" version "5.1.0.4882"
304 property "sonar.projectKey", "my-project"
305 property "sonar.projectName", "MyProject"
310 exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = `
312 id("org.sonarqube") version "5.1.0.4882"
317 property("sonar.projectKey", "my-project")
318 property("sonar.projectName", "MyProject")
323 exports[`should follow and complete all steps: Maven: bitbucket-pipelines.yml 1`] = `
324 "image: maven:3-eclipse-temurin-17
329 name: SonarQube analysis
334 - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
351 exports[`should follow and complete all steps: sonar token key 1`] = `"SONAR_TOKEN"`;
353 exports[`should follow and complete all steps: sonarqube host url key 1`] = `"SONAR_HOST_URL"`;
355 exports[`should follow and complete all steps: sonarqube host url value 1`] = `"http://localhost:9000"`;