1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Dart: jenkinsfile 1`] = `
8 stage('SonarQube Analysis') {
9 def scannerHome = tool 'SonarScanner';
11 sh "\${scannerHome}/bin/sonar-scanner"
17 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
19 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
21 id "org.sonarqube" version "5.1.0.4882"
26 property "sonar.projectKey", "my-project"
27 property "sonar.projectName", "MyProject"
32 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
34 id("org.sonarqube") version "5.1.0.4882"
39 property("sonar.projectKey", "my-project")
40 property("sonar.projectName", "MyProject")
45 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
50 stage('SonarQube Analysis') {
51 def scannerHome = tool 'SonarScanner';
53 sh "\${scannerHome}/bin/sonar-scanner"
59 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
64 stage('SonarQube Analysis') {
65 def scannerHome = tool 'SonarScanner';
67 sh "\${scannerHome}/bin/sonar-scanner"
73 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
75 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
77 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux arm64 jenkinsfile 1`] = `
82 stage('Download Build Wrapper') {
84 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
85 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
88 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
90 stage('SonarQube Analysis') {
91 def scannerHome = tool 'SonarScanner';
93 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
99 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
104 stage('Download Build Wrapper') {
106 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
107 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
110 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
112 stage('SonarQube Analysis') {
113 def scannerHome = tool 'SonarScanner';
115 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
121 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
126 stage('Download Build Wrapper') {
129 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
130 unzip -o build-wrapper-macosx-x86.zip -d .sonar
135 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
138 stage('SonarQube Analysis') {
139 def scannerHome = tool 'SonarScanner';
141 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
147 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
152 stage('Download Build Wrapper') {
154 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
155 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
156 rm $path -Force -ErrorAction SilentlyContinue
158 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
159 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
160 Add-Type -AssemblyName System.IO.Compression.FileSystem
161 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
166 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
167 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
170 stage('SonarQube Analysis') {
171 def scannerHome = tool 'SonarScanner';
173 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
179 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
184 stage('SonarQube Analysis') {
192 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***"`;
194 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
199 stage('SonarQube Analysis') {
200 def scannerHome = tool 'SonarScanner for .NET'
202 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
204 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
211 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
216 stage('SonarQube Analysis') {
217 def mvn = tool 'Default Maven';
219 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
225 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: objectivec: linux arm64 jenkinsfile 1`] = `
230 stage('Download Build Wrapper') {
232 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
233 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
236 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
238 stage('SonarQube Analysis') {
239 def scannerHome = tool 'SonarScanner';
241 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
247 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: objectivec: linux jenkinsfile 1`] = `
252 stage('Download Build Wrapper') {
254 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
255 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
258 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
260 stage('SonarQube Analysis') {
261 def scannerHome = tool 'SonarScanner';
263 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
269 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: objectivec: macos jenkinsfile 1`] = `
274 stage('Download Build Wrapper') {
277 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
278 unzip -o build-wrapper-macosx-x86.zip -d .sonar
283 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
286 stage('SonarQube Analysis') {
287 def scannerHome = tool 'SonarScanner';
289 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
295 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: objectivec: windows jenkinsfile 1`] = `
300 stage('Download Build Wrapper') {
302 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
303 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
304 rm $path -Force -ErrorAction SilentlyContinue
306 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
307 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
308 Add-Type -AssemblyName System.IO.Compression.FileSystem
309 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
314 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
315 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
318 stage('SonarQube Analysis') {
319 def scannerHome = tool 'SonarScanner';
321 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
327 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
329 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
331 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
333 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
338 stage('SonarQube Analysis') {
339 def scannerHome = tool 'SonarScanner for .NET'
341 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
343 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
350 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
355 stage('SonarQube Analysis') {
356 def msbuildHome = tool 'Default MSBuild'
357 def scannerHome = tool 'SonarScanner for .NET'
359 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
360 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
361 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
368 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Dart: jenkinsfile 1`] = `
373 stage('SonarQube Analysis') {
374 def scannerHome = tool 'SonarScanner';
376 sh "\${scannerHome}/bin/sonar-scanner"
382 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
384 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
386 id "org.sonarqube" version "5.1.0.4882"
391 property "sonar.projectKey", "my-project"
392 property "sonar.projectName", "MyProject"
397 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
399 id("org.sonarqube") version "5.1.0.4882"
404 property("sonar.projectKey", "my-project")
405 property("sonar.projectName", "MyProject")
410 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
415 stage('SonarQube Analysis') {
416 def scannerHome = tool 'SonarScanner';
418 sh "\${scannerHome}/bin/sonar-scanner"
424 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
429 stage('SonarQube Analysis') {
430 def scannerHome = tool 'SonarScanner';
432 sh "\${scannerHome}/bin/sonar-scanner"
438 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
440 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
442 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux arm64 jenkinsfile 1`] = `
447 stage('Download Build Wrapper') {
449 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
450 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
453 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
455 stage('SonarQube Analysis') {
456 def scannerHome = tool 'SonarScanner';
458 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
464 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
469 stage('Download Build Wrapper') {
471 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
472 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
475 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
477 stage('SonarQube Analysis') {
478 def scannerHome = tool 'SonarScanner';
480 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
486 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
491 stage('Download Build Wrapper') {
494 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
495 unzip -o build-wrapper-macosx-x86.zip -d .sonar
500 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
503 stage('SonarQube Analysis') {
504 def scannerHome = tool 'SonarScanner';
506 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
512 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
517 stage('Download Build Wrapper') {
519 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
520 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
521 rm $path -Force -ErrorAction SilentlyContinue
523 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
524 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
525 Add-Type -AssemblyName System.IO.Compression.FileSystem
526 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
531 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
532 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
535 stage('SonarQube Analysis') {
536 def scannerHome = tool 'SonarScanner';
538 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
544 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
549 stage('SonarQube Analysis') {
557 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"`;
559 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
564 stage('SonarQube Analysis') {
565 def scannerHome = tool 'SonarScanner for .NET'
567 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
569 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
576 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
581 stage('SonarQube Analysis') {
582 def mvn = tool 'Default Maven';
584 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
590 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: objectivec: linux arm64 jenkinsfile 1`] = `
595 stage('Download Build Wrapper') {
597 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
598 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
601 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
603 stage('SonarQube Analysis') {
604 def scannerHome = tool 'SonarScanner';
606 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
612 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: objectivec: linux jenkinsfile 1`] = `
617 stage('Download Build Wrapper') {
619 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
620 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
623 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
625 stage('SonarQube Analysis') {
626 def scannerHome = tool 'SonarScanner';
628 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
634 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: objectivec: macos jenkinsfile 1`] = `
639 stage('Download Build Wrapper') {
642 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
643 unzip -o build-wrapper-macosx-x86.zip -d .sonar
648 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
651 stage('SonarQube Analysis') {
652 def scannerHome = tool 'SonarScanner';
654 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
660 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: objectivec: windows jenkinsfile 1`] = `
665 stage('Download Build Wrapper') {
667 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
668 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
669 rm $path -Force -ErrorAction SilentlyContinue
671 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
672 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
673 Add-Type -AssemblyName System.IO.Compression.FileSystem
674 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
679 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
680 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
683 stage('SonarQube Analysis') {
684 def scannerHome = tool 'SonarScanner';
686 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
692 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
694 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
696 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
698 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
703 stage('SonarQube Analysis') {
704 def scannerHome = tool 'SonarScanner for .NET'
706 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
708 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
715 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
720 stage('SonarQube Analysis') {
721 def msbuildHome = tool 'Default MSBuild'
722 def scannerHome = tool 'SonarScanner for .NET'
724 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
725 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
726 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
733 exports[`github: can select devops platform and complete all the steps with copying code snippets: Dart: jenkinsfile 1`] = `
738 stage('SonarQube Analysis') {
739 def scannerHome = tool 'SonarScanner';
741 sh "\${scannerHome}/bin/sonar-scanner"
747 exports[`github: can select devops platform and complete all the steps with copying code snippets: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
749 exports[`github: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
751 id "org.sonarqube" version "5.1.0.4882"
756 property "sonar.projectKey", "my-project"
757 property "sonar.projectName", "MyProject"
762 exports[`github: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
764 id("org.sonarqube") version "5.1.0.4882"
769 property("sonar.projectKey", "my-project")
770 property("sonar.projectName", "MyProject")
775 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
780 stage('SonarQube Analysis') {
781 def scannerHome = tool 'SonarScanner';
783 sh "\${scannerHome}/bin/sonar-scanner"
789 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
794 stage('SonarQube Analysis') {
795 def scannerHome = tool 'SonarScanner';
797 sh "\${scannerHome}/bin/sonar-scanner"
803 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
805 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
807 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux arm64 jenkinsfile 1`] = `
812 stage('Download Build Wrapper') {
814 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
815 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
818 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
820 stage('SonarQube Analysis') {
821 def scannerHome = tool 'SonarScanner';
823 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
829 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
834 stage('Download Build Wrapper') {
836 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
837 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
840 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
842 stage('SonarQube Analysis') {
843 def scannerHome = tool 'SonarScanner';
845 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
851 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
856 stage('Download Build Wrapper') {
859 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
860 unzip -o build-wrapper-macosx-x86.zip -d .sonar
865 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
868 stage('SonarQube Analysis') {
869 def scannerHome = tool 'SonarScanner';
871 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
877 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
882 stage('Download Build Wrapper') {
884 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
885 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
886 rm $path -Force -ErrorAction SilentlyContinue
888 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
889 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
890 Add-Type -AssemblyName System.IO.Compression.FileSystem
891 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
896 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
897 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
900 stage('SonarQube Analysis') {
901 def scannerHome = tool 'SonarScanner';
903 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
909 exports[`github: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
914 stage('SonarQube Analysis') {
922 exports[`github: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/github-webhook/"`;
924 exports[`github: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
929 stage('SonarQube Analysis') {
930 def scannerHome = tool 'SonarScanner for .NET'
932 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
934 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
941 exports[`github: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
946 stage('SonarQube Analysis') {
947 def mvn = tool 'Default Maven';
949 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
955 exports[`github: can select devops platform and complete all the steps with copying code snippets: objectivec: linux arm64 jenkinsfile 1`] = `
960 stage('Download Build Wrapper') {
962 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
963 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
966 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
968 stage('SonarQube Analysis') {
969 def scannerHome = tool 'SonarScanner';
971 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
977 exports[`github: can select devops platform and complete all the steps with copying code snippets: objectivec: linux jenkinsfile 1`] = `
982 stage('Download Build Wrapper') {
984 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
985 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
988 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
990 stage('SonarQube Analysis') {
991 def scannerHome = tool 'SonarScanner';
993 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
999 exports[`github: can select devops platform and complete all the steps with copying code snippets: objectivec: macos jenkinsfile 1`] = `
1004 stage('Download Build Wrapper') {
1007 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
1008 unzip -o build-wrapper-macosx-x86.zip -d .sonar
1013 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
1016 stage('SonarQube Analysis') {
1017 def scannerHome = tool 'SonarScanner';
1018 withSonarQubeEnv() {
1019 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1025 exports[`github: can select devops platform and complete all the steps with copying code snippets: objectivec: windows jenkinsfile 1`] = `
1030 stage('Download Build Wrapper') {
1032 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
1033 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
1034 rm $path -Force -ErrorAction SilentlyContinue
1036 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1037 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
1038 Add-Type -AssemblyName System.IO.Compression.FileSystem
1039 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
1044 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
1045 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
1048 stage('SonarQube Analysis') {
1049 def scannerHome = tool 'SonarScanner';
1050 withSonarQubeEnv() {
1051 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1057 exports[`github: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
1059 exports[`github: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
1061 exports[`github: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
1063 exports[`github: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
1068 stage('SonarQube Analysis') {
1069 def scannerHome = tool 'SonarScanner for .NET'
1070 withSonarQubeEnv() {
1071 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
1073 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
1080 exports[`github: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
1085 stage('SonarQube Analysis') {
1086 def msbuildHome = tool 'Default MSBuild'
1087 def scannerHome = tool 'SonarScanner for .NET'
1088 withSonarQubeEnv() {
1089 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
1090 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
1091 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
1098 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Dart: jenkinsfile 1`] = `
1103 stage('SonarQube Analysis') {
1104 def scannerHome = tool 'SonarScanner';
1105 withSonarQubeEnv() {
1106 sh "\${scannerHome}/bin/sonar-scanner"
1112 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Dart: sonar-project.properties 1`] = `"sonar.projectKey=my-project"`;
1114 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
1116 id "org.sonarqube" version "5.1.0.4882"
1121 property "sonar.projectKey", "my-project"
1122 property "sonar.projectName", "MyProject"
1127 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
1129 id("org.sonarqube") version "5.1.0.4882"
1134 property("sonar.projectKey", "my-project")
1135 property("sonar.projectName", "MyProject")
1140 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
1145 stage('SonarQube Analysis') {
1146 def scannerHome = tool 'SonarScanner';
1147 withSonarQubeEnv() {
1148 sh "\${scannerHome}/bin/sonar-scanner"
1154 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
1159 stage('SonarQube Analysis') {
1160 def scannerHome = tool 'SonarScanner';
1161 withSonarQubeEnv() {
1162 sh "\${scannerHome}/bin/sonar-scanner"
1168 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
1170 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
1172 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux arm64 jenkinsfile 1`] = `
1177 stage('Download Build Wrapper') {
1178 sh "mkdir -p .sonar"
1179 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
1180 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
1183 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
1185 stage('SonarQube Analysis') {
1186 def scannerHome = tool 'SonarScanner';
1187 withSonarQubeEnv() {
1188 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1194 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
1199 stage('Download Build Wrapper') {
1200 sh "mkdir -p .sonar"
1201 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
1202 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
1205 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
1207 stage('SonarQube Analysis') {
1208 def scannerHome = tool 'SonarScanner';
1209 withSonarQubeEnv() {
1210 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1216 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
1221 stage('Download Build Wrapper') {
1224 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
1225 unzip -o build-wrapper-macosx-x86.zip -d .sonar
1230 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
1233 stage('SonarQube Analysis') {
1234 def scannerHome = tool 'SonarScanner';
1235 withSonarQubeEnv() {
1236 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1242 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
1247 stage('Download Build Wrapper') {
1249 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
1250 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
1251 rm $path -Force -ErrorAction SilentlyContinue
1253 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1254 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
1255 Add-Type -AssemblyName System.IO.Compression.FileSystem
1256 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
1261 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
1262 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
1265 stage('SonarQube Analysis') {
1266 def scannerHome = tool 'SonarScanner';
1267 withSonarQubeEnv() {
1268 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1274 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
1279 stage('SonarQube Analysis') {
1280 withSonarQubeEnv() {
1281 sh "./gradlew sonar"
1287 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/gitlab-webhook/post"`;
1289 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
1294 stage('SonarQube Analysis') {
1295 def scannerHome = tool 'SonarScanner for .NET'
1296 withSonarQubeEnv() {
1297 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
1299 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
1306 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
1311 stage('SonarQube Analysis') {
1312 def mvn = tool 'Default Maven';
1313 withSonarQubeEnv() {
1314 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
1320 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: objectivec: linux arm64 jenkinsfile 1`] = `
1325 stage('Download Build Wrapper') {
1326 sh "mkdir -p .sonar"
1327 sh "curl -sSLo build-wrapper-linux-aarch64.zip http://localhost:9000/static/cpp/build-wrapper-linux-aarch64.zip"
1328 sh "unzip -o build-wrapper-linux-aarch64.zip -d .sonar"
1331 sh ".sonar/build-wrapper-linux-aarch64/build-wrapper-linux-aarch64 --out-dir bw-output <your clean build command>"
1333 stage('SonarQube Analysis') {
1334 def scannerHome = tool 'SonarScanner';
1335 withSonarQubeEnv() {
1336 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1342 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: objectivec: linux jenkinsfile 1`] = `
1347 stage('Download Build Wrapper') {
1348 sh "mkdir -p .sonar"
1349 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
1350 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
1353 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
1355 stage('SonarQube Analysis') {
1356 def scannerHome = tool 'SonarScanner';
1357 withSonarQubeEnv() {
1358 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1364 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: objectivec: macos jenkinsfile 1`] = `
1369 stage('Download Build Wrapper') {
1372 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
1373 unzip -o build-wrapper-macosx-x86.zip -d .sonar
1378 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
1381 stage('SonarQube Analysis') {
1382 def scannerHome = tool 'SonarScanner';
1383 withSonarQubeEnv() {
1384 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1390 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: objectivec: windows jenkinsfile 1`] = `
1395 stage('Download Build Wrapper') {
1397 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
1398 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
1399 rm $path -Force -ErrorAction SilentlyContinue
1401 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1402 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
1403 Add-Type -AssemblyName System.IO.Compression.FileSystem
1404 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
1409 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
1410 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
1413 stage('SonarQube Analysis') {
1414 def scannerHome = tool 'SonarScanner';
1415 withSonarQubeEnv() {
1416 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1422 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
1424 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
1426 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
1428 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
1433 stage('SonarQube Analysis') {
1434 def scannerHome = tool 'SonarScanner for .NET'
1435 withSonarQubeEnv() {
1436 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
1438 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
1445 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
1450 stage('SonarQube Analysis') {
1451 def msbuildHome = tool 'Default MSBuild'
1452 def scannerHome = tool 'SonarScanner for .NET'
1453 withSonarQubeEnv() {
1454 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
1455 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
1456 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"