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`] = `
36 name: SonarQube analysis
38 - pipe: sonarsource/sonarqube-scan:3.0.2
40 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
41 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
59 exports[`should follow and complete all steps: C++ (automatic) and other: bitbucket-pipelines.yml 1`] = `
63 name: SonarQube analysis
65 - pipe: sonarsource/sonarqube-scan:3.0.2
67 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
68 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
86 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
88 exports[`should follow and complete all steps: C++ (automatic) and other: sonar-project.properties 2`] = `"sonar.projectKey=my-project"`;
90 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 1`] = `
91 "image: <image ready for your build toolchain>
96 name: Build the project, and run the SonarQube analysis
98 - export SONAR_SCANNER_VERSION=6.2.0.4584
100 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
101 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
102 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-aarch64.zip
103 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
104 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-aarch64/bin"
105 - <any step required before running your build, like ./configure>
106 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
107 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
124 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
126 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
128 exports[`should follow and complete all steps: C++ (manual arm64) and Objective-C: sonar-project.properties 2`] = `
129 "image: <image ready for your build toolchain>
134 name: Build the project, and run the SonarQube analysis
136 - export SONAR_SCANNER_VERSION=6.2.0.4584
138 - curl -sSLo $HOME/.sonar/build-wrapper-linux-aarch64.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-aarch64.zip
139 - unzip -o $HOME/.sonar/build-wrapper-linux-aarch64.zip -d $HOME/.sonar/
140 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-aarch64.zip
141 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
142 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-aarch64/bin"
143 - <any step required before running your build, like ./configure>
144 - $HOME/.sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>
145 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
162 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 1`] = `
163 "image: <image ready for your build toolchain>
168 name: Build the project, and run the SonarQube analysis
170 - export SONAR_SCANNER_VERSION=6.2.0.4584
172 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
173 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
174 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
175 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
176 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
177 - <any step required before running your build, like ./configure>
178 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
179 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
196 exports[`should follow and complete all steps: C++ (manual) and Objective-C: bitbucket-pipelines.yml 2`] = `"sonar.projectKey=my-project"`;
198 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
200 exports[`should follow and complete all steps: C++ (manual) and Objective-C: sonar-project.properties 2`] = `
201 "image: <image ready for your build toolchain>
206 name: Build the project, and run the SonarQube analysis
208 - export SONAR_SCANNER_VERSION=6.2.0.4584
210 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
211 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
212 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
213 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
214 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
215 - <any step required before running your build, like ./configure>
216 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
217 - sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json
234 exports[`should follow and complete all steps: Dart: bitbucket-pipelines.yml 1`] = `
235 "image: ghcr.io/cirruslabs/flutter:stable
240 name: Build the project, and run the SonarQube analysis
242 - <commands to build your project>
243 - export SONAR_SCANNER_VERSION=6.2.0.4584
245 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux-x64.zip
246 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
247 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux-x64/bin"
265 exports[`should follow and complete all steps: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
267 exports[`should follow and complete all steps: Gradle: bitbucket-pipelines.yml 1`] = `
268 "image: eclipse-temurin:17
273 name: SonarQube analysis
278 - bash ./gradlew sonar
295 exports[`should follow and complete all steps: Groovy: build.gradle 1`] = `
297 id "org.sonarqube" version "5.1.0.4882"
302 property "sonar.projectKey", "my-project"
303 property "sonar.projectName", "MyProject"
308 exports[`should follow and complete all steps: Kotlin: build.gradle.kts 1`] = `
310 id("org.sonarqube") version "5.1.0.4882"
315 property("sonar.projectKey", "my-project")
316 property("sonar.projectName", "MyProject")
321 exports[`should follow and complete all steps: Maven: bitbucket-pipelines.yml 1`] = `
322 "image: maven:3-eclipse-temurin-17
327 name: SonarQube analysis
332 - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
349 exports[`should follow and complete all steps: sonar token key 1`] = `"SONAR_TOKEN"`;
351 exports[`should follow and complete all steps: sonarqube host url key 1`] = `"SONAR_HOST_URL"`;
353 exports[`should follow and complete all steps: sonarqube host url value 1`] = `"http://localhost:9000"`;