1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly for cfamily 1`] = `
31 yamlFileName="bitbucket-pipelines.yml"
32 yamlTemplate="image: <image ready for your build toolchain>
37 name: Build the project, and run the SonarQube analysis
39 - export SONAR_SCANNER_VERSION=4.6.2.2472
41 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
42 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
43 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux.zip
44 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
45 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin"
46 - <any step required before running your build, like ./configure>
47 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
48 - sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
62 className="abs-width-800"
67 exports[`should render correctly for cfamily: with branch enabled 1`] = `
95 yamlFileName="bitbucket-pipelines.yml"
96 yamlTemplate="image: <image ready for your build toolchain>
101 name: Build the project, and run the SonarQube analysis
103 - export SONAR_SCANNER_VERSION=4.6.2.2472
105 - curl -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip \${SONAR_HOST_URL}/static/cpp/build-wrapper-linux-x86.zip
106 - unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
107 - curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux.zip
108 - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
109 - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin"
110 - <any step required before running your build, like ./configure>
111 - $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
112 - sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
129 className="abs-width-800"
134 exports[`should render correctly for dotnet 1`] = `
162 yamlFileName="bitbucket-pipelines.yml"
163 yamlTemplate="image: mcr.microsoft.com/dotnet/core/sdk:latest
168 name: SonarQube analysis
174 - apt-get install --yes openjdk-11-jre
175 - dotnet tool install --global dotnet-sonarscanner
176 - export PATH="$PATH:/root/.dotnet/tools"
177 - dotnet sonarscanner begin /k:"my-project" /d:"sonar.login=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
179 - dotnet sonarscanner end /d:"sonar.login=\${SONAR_TOKEN}"
192 exports[`should render correctly for dotnet: with branch enabled 1`] = `
220 yamlFileName="bitbucket-pipelines.yml"
221 yamlTemplate="image: mcr.microsoft.com/dotnet/core/sdk:latest
226 name: SonarQube analysis
232 - apt-get install --yes openjdk-11-jre
233 - dotnet tool install --global dotnet-sonarscanner
234 - export PATH="$PATH:/root/.dotnet/tools"
235 - dotnet sonarscanner begin /k:"my-project" /d:"sonar.login=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
237 - dotnet sonarscanner end /d:"sonar.login=\${SONAR_TOKEN}"
253 exports[`should render correctly for gradle 1`] = `
281 yamlFileName="bitbucket-pipelines.yml"
282 yamlTemplate="image: openjdk:8
287 name: SonarQube analysis
292 - bash ./gradlew sonar
308 exports[`should render correctly for gradle: with branch enabled 1`] = `
336 yamlFileName="bitbucket-pipelines.yml"
337 yamlTemplate="image: openjdk:8
342 name: SonarQube analysis
347 - bash ./gradlew sonar
366 exports[`should render correctly for maven 1`] = `
394 yamlFileName="bitbucket-pipelines.yml"
395 yamlTemplate="image: maven:3-openjdk-11
400 name: SonarQube analysis
405 - mvn verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
421 exports[`should render correctly for maven: with branch enabled 1`] = `
449 yamlFileName="bitbucket-pipelines.yml"
450 yamlTemplate="image: maven:3-openjdk-11
455 name: SonarQube analysis
460 - mvn verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
479 exports[`should render correctly for other 1`] = `
507 yamlFileName="bitbucket-pipelines.yml"
508 yamlTemplate="image: maven:3.3.9
513 name: SonarQube analysis
515 - pipe: sonarsource/sonarqube-scan:1.0.0
517 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
518 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.
534 exports[`should render correctly for other: with branch enabled 1`] = `
562 yamlFileName="bitbucket-pipelines.yml"
563 yamlTemplate="image: maven:3.3.9
568 name: SonarQube analysis
570 - pipe: sonarsource/sonarqube-scan:1.0.0
572 SONAR_HOST_URL: \${SONAR_HOST_URL} # Get the value from the repository/workspace variable.
573 SONAR_TOKEN: \${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.