1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly for cfamily 1`] = `
9 "breadcrumbs": Array [],
13 "qualityGate": Object {
18 "qualityProfiles": Array [
31 yamlFileName="bitbucket-pipelines.yml"
32 yamlTemplate="image: <image ready for your build toolchain>
39 '{master}': # or the name of your main branch
41 name: Download and install the build wrapper, build the project
44 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
45 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
46 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
47 - pipe: sonarsource/sonarqube-scan:1.0.0
49 EXTRA_ARGS: -Dsonar.cfamily.build-wrapper-output=bw-output
50 SONAR_HOST_URL: \${SONAR_HOST_URL}
51 SONAR_TOKEN: \${SONAR_TOKEN}
58 className="abs-width-800"
63 exports[`should render correctly for cfamily: with branch enabled 1`] = `
69 "breadcrumbs": Array [],
73 "qualityGate": Object {
78 "qualityProfiles": Array [
91 yamlFileName="bitbucket-pipelines.yml"
92 yamlTemplate="image: <image ready for your build toolchain>
99 '{master}': # or the name of your main branch
101 name: Download and install the build wrapper, build the project
104 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
105 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
106 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
107 - pipe: sonarsource/sonarqube-scan:1.0.0
109 EXTRA_ARGS: -Dsonar.cfamily.build-wrapper-output=bw-output
110 SONAR_HOST_URL: \${SONAR_HOST_URL}
111 SONAR_TOKEN: \${SONAR_TOKEN}
116 name: Download and install the build wrapper, build the project
119 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
120 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
121 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
122 - pipe: sonarsource/sonarqube-scan:1.0.0
124 EXTRA_ARGS: -Dsonar.cfamily.build-wrapper-output=bw-output
125 SONAR_HOST_URL: \${SONAR_HOST_URL}
126 SONAR_TOKEN: \${SONAR_TOKEN}
132 className="abs-width-800"
137 exports[`should render correctly for dotnet 1`] = `
143 "breadcrumbs": Array [],
147 "qualityGate": Object {
152 "qualityProfiles": Array [
165 yamlFileName="bitbucket-pipelines.yml"
166 yamlTemplate="image: mcr.microsoft.com/dotnet/core/sdk:latest
170 '{master}': # or the name of your main branch
172 name: SonarQube analysis
178 - apt-get install --yes openjdk-11-jre
179 - dotnet tool install --global dotnet-sonarscanner
180 - export PATH=\\"$PATH:/root/.dotnet/tools\\"
181 - dotnet sonarscanner begin /k:\\"my-project\\" /d:\\"sonar.login=\${SONAR_TOKEN}\\" /d:\\"sonar.host.url=\${SONAR_HOST_URL}\\"
183 - dotnet sonarscanner end /d:\\"sonar.login=\${SONAR_TOKEN}\\"
192 exports[`should render correctly for dotnet: with branch enabled 1`] = `
198 "breadcrumbs": Array [],
202 "qualityGate": Object {
207 "qualityProfiles": Array [
220 yamlFileName="bitbucket-pipelines.yml"
221 yamlTemplate="image: mcr.microsoft.com/dotnet/core/sdk:latest
225 '{master}': # or the name of your main branch
227 name: SonarQube analysis
233 - apt-get install --yes openjdk-11-jre
234 - dotnet tool install --global dotnet-sonarscanner
235 - export PATH=\\"$PATH:/root/.dotnet/tools\\"
236 - dotnet sonarscanner begin /k:\\"my-project\\" /d:\\"sonar.login=\${SONAR_TOKEN}\\" /d:\\"sonar.host.url=\${SONAR_HOST_URL}\\"
238 - dotnet sonarscanner end /d:\\"sonar.login=\${SONAR_TOKEN}\\"
243 name: SonarQube analysis
249 - apt-get install --yes openjdk-11-jre
250 - dotnet tool install --global dotnet-sonarscanner
251 - export PATH=\\"$PATH:/root/.dotnet/tools\\"
252 - dotnet sonarscanner begin /k:\\"my-project\\" /d:\\"sonar.login=\${SONAR_TOKEN}\\" /d:\\"sonar.host.url=\${SONAR_HOST_URL}\\"
254 - dotnet sonarscanner end /d:\\"sonar.login=\${SONAR_TOKEN}\\"
263 exports[`should render correctly for gradle 1`] = `
269 "breadcrumbs": Array [],
273 "qualityGate": Object {
278 "qualityProfiles": Array [
291 yamlFileName="bitbucket-pipelines.yml"
292 yamlTemplate="image: openjdk:8
299 '{master}': # or the name of your main branch
301 name: SonarQube analysis
306 - bash ./gradlew sonarqube
315 exports[`should render correctly for gradle: with branch enabled 1`] = `
321 "breadcrumbs": Array [],
325 "qualityGate": Object {
330 "qualityProfiles": Array [
343 yamlFileName="bitbucket-pipelines.yml"
344 yamlTemplate="image: openjdk:8
351 '{master}': # or the name of your main branch
353 name: SonarQube analysis
358 - bash ./gradlew sonarqube
363 name: SonarQube analysis
368 - bash ./gradlew sonarqube
377 exports[`should render correctly for maven 1`] = `
383 "breadcrumbs": Array [],
387 "qualityGate": Object {
392 "qualityProfiles": Array [
405 yamlFileName="bitbucket-pipelines.yml"
406 yamlTemplate="image: maven:3-openjdk-11
413 '{master}': # or the name of your main branch
415 name: SonarQube analysis
420 - mvn verify sonar:sonar -Dsonar.projectKey=my-project
429 exports[`should render correctly for maven: with branch enabled 1`] = `
435 "breadcrumbs": Array [],
439 "qualityGate": Object {
444 "qualityProfiles": Array [
457 yamlFileName="bitbucket-pipelines.yml"
458 yamlTemplate="image: maven:3-openjdk-11
465 '{master}': # or the name of your main branch
467 name: SonarQube analysis
472 - mvn verify sonar:sonar -Dsonar.projectKey=my-project
477 name: SonarQube analysis
482 - mvn verify sonar:sonar -Dsonar.projectKey=my-project
491 exports[`should render correctly for other 1`] = `
497 "breadcrumbs": Array [],
501 "qualityGate": Object {
506 "qualityProfiles": Array [
519 yamlFileName="bitbucket-pipelines.yml"
520 yamlTemplate="image: maven:3.3.9
527 '{master}': # or the name of your main branch
529 name: SonarQube analysis
531 - pipe: sonarsource/sonarqube-scan:1.0.0
533 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
534 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
543 exports[`should render correctly for other: with branch enabled 1`] = `
549 "breadcrumbs": Array [],
553 "qualityGate": Object {
558 "qualityProfiles": Array [
571 yamlFileName="bitbucket-pipelines.yml"
572 yamlTemplate="image: maven:3.3.9
579 '{master}': # or the name of your main branch
581 name: SonarQube analysis
583 - pipe: sonarsource/sonarqube-scan:1.0.0
585 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
586 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
591 name: SonarQube analysis
593 - pipe: sonarsource/sonarqube-scan:1.0.0
595 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
596 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.