1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: build.gradle file 1`] = `
5 id "org.sonarqube" version "4.0.0.2929"
10 property "sonar.projectKey", "my-project"
11 property "sonar.projectName", "MyProject"
16 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: cfamily linux jenkinsfile 1`] = `
21 stage('Download Build Wrapper') {
23 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
24 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
27 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
29 stage('SonarQube Analysis') {
30 def scannerHome = tool 'SonarScanner';
32 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
38 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: cfamily macos jenkinsfile 1`] = `
43 stage('Download Build Wrapper') {
46 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
47 unzip -o build-wrapper-macosx-x86.zip -d .sonar
52 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
55 stage('SonarQube Analysis') {
56 def scannerHome = tool 'SonarScanner';
58 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
64 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: cfamily windows jenkinsfile 1`] = `
69 stage('Download Build Wrapper') {
71 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
72 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
73 rm $path -Force -ErrorAction SilentlyContinue
75 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
76 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
77 Add-Type -AssemblyName System.IO.Compression.FileSystem
78 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
83 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
84 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
87 stage('SonarQube Analysis') {
88 def scannerHome = tool 'SonarScanner';
90 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
96 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
101 stage('SonarQube Analysis') {
109 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/bitbucket-scmsource-hook/notify?server_url=***BITBUCKET_URL***"`;
111 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
116 stage('SonarQube Analysis') {
117 def scannerHome = tool 'SonarScanner for MSBuild'
119 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
121 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
128 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
133 stage('SonarQube Analysis') {
134 def mvn = tool 'Default Maven';
136 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
142 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: other build tools jenkinsfile 1`] = `
147 stage('SonarQube Analysis') {
148 def scannerHome = tool 'SonarScanner';
150 sh "\${scannerHome}/bin/sonar-scanner"
156 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: other build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
158 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
160 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
162 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
167 stage('SonarQube Analysis') {
168 def scannerHome = tool 'SonarScanner for MSBuild'
170 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
172 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
179 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
184 stage('SonarQube Analysis') {
185 def msbuildHome = tool 'Default MSBuild'
186 def scannerHome = tool 'SonarScanner for MSBuild'
188 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
189 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
190 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
197 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: build.gradle file 1`] = `
199 id "org.sonarqube" version "4.0.0.2929"
204 property "sonar.projectKey", "my-project"
205 property "sonar.projectName", "MyProject"
210 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: cfamily linux jenkinsfile 1`] = `
215 stage('Download Build Wrapper') {
217 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
218 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
221 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
223 stage('SonarQube Analysis') {
224 def scannerHome = tool 'SonarScanner';
226 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
232 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: cfamily macos jenkinsfile 1`] = `
237 stage('Download Build Wrapper') {
240 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
241 unzip -o build-wrapper-macosx-x86.zip -d .sonar
246 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
249 stage('SonarQube Analysis') {
250 def scannerHome = tool 'SonarScanner';
252 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
258 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: cfamily windows jenkinsfile 1`] = `
263 stage('Download Build Wrapper') {
265 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
266 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
267 rm $path -Force -ErrorAction SilentlyContinue
269 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
270 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
271 Add-Type -AssemblyName System.IO.Compression.FileSystem
272 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
277 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
278 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
281 stage('SonarQube Analysis') {
282 def scannerHome = tool 'SonarScanner';
284 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
290 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
295 stage('SonarQube Analysis') {
303 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/bitbucket-scmsource-hook/notify"`;
305 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
310 stage('SonarQube Analysis') {
311 def scannerHome = tool 'SonarScanner for MSBuild'
313 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
315 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
322 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
327 stage('SonarQube Analysis') {
328 def mvn = tool 'Default Maven';
330 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
336 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: other build tools jenkinsfile 1`] = `
341 stage('SonarQube Analysis') {
342 def scannerHome = tool 'SonarScanner';
344 sh "\${scannerHome}/bin/sonar-scanner"
350 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: other build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
352 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
354 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
356 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
361 stage('SonarQube Analysis') {
362 def scannerHome = tool 'SonarScanner for MSBuild'
364 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
366 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
373 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
378 stage('SonarQube Analysis') {
379 def msbuildHome = tool 'Default MSBuild'
380 def scannerHome = tool 'SonarScanner for MSBuild'
382 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
383 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
384 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
391 exports[`github: can select devops platform and complete all the steps with copying code snippets: build.gradle file 1`] = `
393 id "org.sonarqube" version "4.0.0.2929"
398 property "sonar.projectKey", "my-project"
399 property "sonar.projectName", "MyProject"
404 exports[`github: can select devops platform and complete all the steps with copying code snippets: cfamily linux jenkinsfile 1`] = `
409 stage('Download Build Wrapper') {
411 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
412 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
415 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
417 stage('SonarQube Analysis') {
418 def scannerHome = tool 'SonarScanner';
420 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
426 exports[`github: can select devops platform and complete all the steps with copying code snippets: cfamily macos jenkinsfile 1`] = `
431 stage('Download Build Wrapper') {
434 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
435 unzip -o build-wrapper-macosx-x86.zip -d .sonar
440 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
443 stage('SonarQube Analysis') {
444 def scannerHome = tool 'SonarScanner';
446 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
452 exports[`github: can select devops platform and complete all the steps with copying code snippets: cfamily windows jenkinsfile 1`] = `
457 stage('Download Build Wrapper') {
459 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
460 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
461 rm $path -Force -ErrorAction SilentlyContinue
463 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
464 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
465 Add-Type -AssemblyName System.IO.Compression.FileSystem
466 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
471 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
472 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
475 stage('SonarQube Analysis') {
476 def scannerHome = tool 'SonarScanner';
478 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
484 exports[`github: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
489 stage('SonarQube Analysis') {
497 exports[`github: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/github-webhook/"`;
499 exports[`github: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
504 stage('SonarQube Analysis') {
505 def scannerHome = tool 'SonarScanner for MSBuild'
507 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
509 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
516 exports[`github: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
521 stage('SonarQube Analysis') {
522 def mvn = tool 'Default Maven';
524 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
530 exports[`github: can select devops platform and complete all the steps with copying code snippets: other build tools jenkinsfile 1`] = `
535 stage('SonarQube Analysis') {
536 def scannerHome = tool 'SonarScanner';
538 sh "\${scannerHome}/bin/sonar-scanner"
544 exports[`github: can select devops platform and complete all the steps with copying code snippets: other build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
546 exports[`github: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
548 exports[`github: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
550 exports[`github: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
555 stage('SonarQube Analysis') {
556 def scannerHome = tool 'SonarScanner for MSBuild'
558 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
560 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
567 exports[`github: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
572 stage('SonarQube Analysis') {
573 def msbuildHome = tool 'Default MSBuild'
574 def scannerHome = tool 'SonarScanner for MSBuild'
576 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
577 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
578 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
585 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: build.gradle file 1`] = `
587 id "org.sonarqube" version "4.0.0.2929"
592 property "sonar.projectKey", "my-project"
593 property "sonar.projectName", "MyProject"
598 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: cfamily linux jenkinsfile 1`] = `
603 stage('Download Build Wrapper') {
605 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
606 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
609 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
611 stage('SonarQube Analysis') {
612 def scannerHome = tool 'SonarScanner';
614 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
620 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: cfamily macos jenkinsfile 1`] = `
625 stage('Download Build Wrapper') {
628 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
629 unzip -o build-wrapper-macosx-x86.zip -d .sonar
634 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
637 stage('SonarQube Analysis') {
638 def scannerHome = tool 'SonarScanner';
640 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
646 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: cfamily windows jenkinsfile 1`] = `
651 stage('Download Build Wrapper') {
653 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
654 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
655 rm $path -Force -ErrorAction SilentlyContinue
657 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
658 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
659 Add-Type -AssemblyName System.IO.Compression.FileSystem
660 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
665 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
666 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
669 stage('SonarQube Analysis') {
670 def scannerHome = tool 'SonarScanner';
672 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
678 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
683 stage('SonarQube Analysis') {
691 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/gitlab-webhook/post"`;
693 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
698 stage('SonarQube Analysis') {
699 def scannerHome = tool 'SonarScanner for MSBuild'
701 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
703 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
710 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
715 stage('SonarQube Analysis') {
716 def mvn = tool 'Default Maven';
718 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
724 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: other build tools jenkinsfile 1`] = `
729 stage('SonarQube Analysis') {
730 def scannerHome = tool 'SonarScanner';
732 sh "\${scannerHome}/bin/sonar-scanner"
738 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: other build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
740 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
742 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
744 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
749 stage('SonarQube Analysis') {
750 def scannerHome = tool 'SonarScanner for MSBuild'
752 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
754 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
761 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
766 stage('SonarQube Analysis') {
767 def msbuildHome = tool 'Default MSBuild'
768 def scannerHome = tool 'SonarScanner for MSBuild'
770 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
771 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
772 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"