1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
5 id "org.sonarqube" version "5.0.0.4638"
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: Kotlin: build.gradle.kts file 1`] = `
18 id("org.sonarqube") version "5.0.0.4638"
23 property("sonar.projectKey", "my-project")
24 property("sonar.projectName", "MyProject")
29 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
34 stage('SonarQube Analysis') {
35 def scannerHome = tool 'SonarScanner';
37 sh "\${scannerHome}/bin/sonar-scanner"
43 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
48 stage('SonarQube Analysis') {
49 def scannerHome = tool 'SonarScanner';
51 sh "\${scannerHome}/bin/sonar-scanner"
57 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"`;
59 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"`;
61 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
66 stage('Download Build Wrapper') {
68 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
69 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
72 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
74 stage('SonarQube Analysis') {
75 def scannerHome = tool 'SonarScanner';
77 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
83 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 2`] = `
88 stage('Download Build Wrapper') {
90 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
91 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
94 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
96 stage('SonarQube Analysis') {
97 def scannerHome = tool 'SonarScanner';
99 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
105 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
110 stage('Download Build Wrapper') {
113 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
114 unzip -o build-wrapper-macosx-x86.zip -d .sonar
119 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
122 stage('SonarQube Analysis') {
123 def scannerHome = tool 'SonarScanner';
125 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
131 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 2`] = `
136 stage('Download Build Wrapper') {
139 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
140 unzip -o build-wrapper-macosx-x86.zip -d .sonar
145 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
148 stage('SonarQube Analysis') {
149 def scannerHome = tool 'SonarScanner';
151 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
157 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
162 stage('Download Build Wrapper') {
164 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
165 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
166 rm $path -Force -ErrorAction SilentlyContinue
168 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
169 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
170 Add-Type -AssemblyName System.IO.Compression.FileSystem
171 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
176 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
177 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
180 stage('SonarQube Analysis') {
181 def scannerHome = tool 'SonarScanner';
183 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
189 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 2`] = `
194 stage('Download Build Wrapper') {
196 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
197 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
198 rm $path -Force -ErrorAction SilentlyContinue
200 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
201 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
202 Add-Type -AssemblyName System.IO.Compression.FileSystem
203 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
208 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
209 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
212 stage('SonarQube Analysis') {
213 def scannerHome = tool 'SonarScanner';
215 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
221 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
226 stage('SonarQube Analysis') {
234 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***"`;
236 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
241 stage('SonarQube Analysis') {
242 def scannerHome = tool 'SonarScanner for MSBuild'
244 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
246 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
253 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
258 stage('SonarQube Analysis') {
259 def mvn = tool 'Default Maven';
261 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
267 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
269 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
271 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
273 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
278 stage('SonarQube Analysis') {
279 def scannerHome = tool 'SonarScanner for MSBuild'
281 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
283 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
290 exports[`bitbucket: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
295 stage('SonarQube Analysis') {
296 def msbuildHome = tool 'Default MSBuild'
297 def scannerHome = tool 'SonarScanner for MSBuild'
299 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
300 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
301 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
308 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
310 id "org.sonarqube" version "5.0.0.4638"
315 property "sonar.projectKey", "my-project"
316 property "sonar.projectName", "MyProject"
321 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
323 id("org.sonarqube") version "5.0.0.4638"
328 property("sonar.projectKey", "my-project")
329 property("sonar.projectName", "MyProject")
334 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
339 stage('SonarQube Analysis') {
340 def scannerHome = tool 'SonarScanner';
342 sh "\${scannerHome}/bin/sonar-scanner"
348 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
353 stage('SonarQube Analysis') {
354 def scannerHome = tool 'SonarScanner';
356 sh "\${scannerHome}/bin/sonar-scanner"
362 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"`;
364 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"`;
366 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
371 stage('Download Build Wrapper') {
373 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
374 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
377 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
379 stage('SonarQube Analysis') {
380 def scannerHome = tool 'SonarScanner';
382 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
388 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 2`] = `
393 stage('Download Build Wrapper') {
395 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
396 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
399 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
401 stage('SonarQube Analysis') {
402 def scannerHome = tool 'SonarScanner';
404 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
410 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
415 stage('Download Build Wrapper') {
418 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
419 unzip -o build-wrapper-macosx-x86.zip -d .sonar
424 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
427 stage('SonarQube Analysis') {
428 def scannerHome = tool 'SonarScanner';
430 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
436 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 2`] = `
441 stage('Download Build Wrapper') {
444 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
445 unzip -o build-wrapper-macosx-x86.zip -d .sonar
450 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
453 stage('SonarQube Analysis') {
454 def scannerHome = tool 'SonarScanner';
456 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
462 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
467 stage('Download Build Wrapper') {
469 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
470 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
471 rm $path -Force -ErrorAction SilentlyContinue
473 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
474 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
475 Add-Type -AssemblyName System.IO.Compression.FileSystem
476 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
481 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
482 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
485 stage('SonarQube Analysis') {
486 def scannerHome = tool 'SonarScanner';
488 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
494 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 2`] = `
499 stage('Download Build Wrapper') {
501 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
502 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
503 rm $path -Force -ErrorAction SilentlyContinue
505 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
506 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
507 Add-Type -AssemblyName System.IO.Compression.FileSystem
508 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
513 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
514 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
517 stage('SonarQube Analysis') {
518 def scannerHome = tool 'SonarScanner';
520 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
526 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
531 stage('SonarQube Analysis') {
539 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"`;
541 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
546 stage('SonarQube Analysis') {
547 def scannerHome = tool 'SonarScanner for MSBuild'
549 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
551 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
558 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
563 stage('SonarQube Analysis') {
564 def mvn = tool 'Default Maven';
566 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
572 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
574 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
576 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
578 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
583 stage('SonarQube Analysis') {
584 def scannerHome = tool 'SonarScanner for MSBuild'
586 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
588 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
595 exports[`bitbucketcloud: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
600 stage('SonarQube Analysis') {
601 def msbuildHome = tool 'Default MSBuild'
602 def scannerHome = tool 'SonarScanner for MSBuild'
604 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
605 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
606 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
613 exports[`github: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
615 id "org.sonarqube" version "5.0.0.4638"
620 property "sonar.projectKey", "my-project"
621 property "sonar.projectName", "MyProject"
626 exports[`github: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
628 id("org.sonarqube") version "5.0.0.4638"
633 property("sonar.projectKey", "my-project")
634 property("sonar.projectName", "MyProject")
639 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
644 stage('SonarQube Analysis') {
645 def scannerHome = tool 'SonarScanner';
647 sh "\${scannerHome}/bin/sonar-scanner"
653 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
658 stage('SonarQube Analysis') {
659 def scannerHome = tool 'SonarScanner';
661 sh "\${scannerHome}/bin/sonar-scanner"
667 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"`;
669 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"`;
671 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
676 stage('Download Build Wrapper') {
678 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
679 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
682 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
684 stage('SonarQube Analysis') {
685 def scannerHome = tool 'SonarScanner';
687 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
693 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 2`] = `
698 stage('Download Build Wrapper') {
700 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
701 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
704 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
706 stage('SonarQube Analysis') {
707 def scannerHome = tool 'SonarScanner';
709 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
715 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
720 stage('Download Build Wrapper') {
723 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
724 unzip -o build-wrapper-macosx-x86.zip -d .sonar
729 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
732 stage('SonarQube Analysis') {
733 def scannerHome = tool 'SonarScanner';
735 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
741 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 2`] = `
746 stage('Download Build Wrapper') {
749 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
750 unzip -o build-wrapper-macosx-x86.zip -d .sonar
755 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
758 stage('SonarQube Analysis') {
759 def scannerHome = tool 'SonarScanner';
761 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
767 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
772 stage('Download Build Wrapper') {
774 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
775 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
776 rm $path -Force -ErrorAction SilentlyContinue
778 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
779 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
780 Add-Type -AssemblyName System.IO.Compression.FileSystem
781 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
786 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
787 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
790 stage('SonarQube Analysis') {
791 def scannerHome = tool 'SonarScanner';
793 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
799 exports[`github: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 2`] = `
804 stage('Download Build Wrapper') {
806 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
807 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
808 rm $path -Force -ErrorAction SilentlyContinue
810 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
811 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
812 Add-Type -AssemblyName System.IO.Compression.FileSystem
813 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
818 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
819 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
822 stage('SonarQube Analysis') {
823 def scannerHome = tool 'SonarScanner';
825 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
831 exports[`github: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
836 stage('SonarQube Analysis') {
844 exports[`github: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/github-webhook/"`;
846 exports[`github: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
851 stage('SonarQube Analysis') {
852 def scannerHome = tool 'SonarScanner for MSBuild'
854 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
856 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
863 exports[`github: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
868 stage('SonarQube Analysis') {
869 def mvn = tool 'Default Maven';
871 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
877 exports[`github: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
879 exports[`github: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
881 exports[`github: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
883 exports[`github: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
888 stage('SonarQube Analysis') {
889 def scannerHome = tool 'SonarScanner for MSBuild'
891 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
893 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
900 exports[`github: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
905 stage('SonarQube Analysis') {
906 def msbuildHome = tool 'Default MSBuild'
907 def scannerHome = tool 'SonarScanner for MSBuild'
909 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
910 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
911 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
918 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Groovy: build.gradle file 1`] = `
920 id "org.sonarqube" version "5.0.0.4638"
925 property "sonar.projectKey", "my-project"
926 property "sonar.projectName", "MyProject"
931 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: Kotlin: build.gradle.kts file 1`] = `
933 id("org.sonarqube") version "5.0.0.4638"
938 property("sonar.projectKey", "my-project")
939 property("sonar.projectName", "MyProject")
944 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 1`] = `
949 stage('SonarQube Analysis') {
950 def scannerHome = tool 'SonarScanner';
952 sh "\${scannerHome}/bin/sonar-scanner"
958 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (automatic and other): build tools jenkinsfile 2`] = `
963 stage('SonarQube Analysis') {
964 def scannerHome = tool 'SonarScanner';
966 sh "\${scannerHome}/bin/sonar-scanner"
972 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"`;
974 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"`;
976 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 1`] = `
981 stage('Download Build Wrapper') {
983 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
984 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
987 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
989 stage('SonarQube Analysis') {
990 def scannerHome = tool 'SonarScanner';
992 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
998 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: linux jenkinsfile 2`] = `
1003 stage('Download Build Wrapper') {
1004 sh "mkdir -p .sonar"
1005 sh "curl -sSLo build-wrapper-linux-x86.zip http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip"
1006 sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
1009 sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
1011 stage('SonarQube Analysis') {
1012 def scannerHome = tool 'SonarScanner';
1013 withSonarQubeEnv() {
1014 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1020 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 1`] = `
1025 stage('Download Build Wrapper') {
1028 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
1029 unzip -o build-wrapper-macosx-x86.zip -d .sonar
1034 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
1037 stage('SonarQube Analysis') {
1038 def scannerHome = tool 'SonarScanner';
1039 withSonarQubeEnv() {
1040 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1046 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: macos jenkinsfile 2`] = `
1051 stage('Download Build Wrapper') {
1054 curl -sSLo build-wrapper-macosx-x86.zip http://localhost:9000/static/cpp/build-wrapper-macosx-x86.zip
1055 unzip -o build-wrapper-macosx-x86.zip -d .sonar
1060 .sonar/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output <your clean build command>
1063 stage('SonarQube Analysis') {
1064 def scannerHome = tool 'SonarScanner';
1065 withSonarQubeEnv() {
1066 sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1072 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 1`] = `
1077 stage('Download Build Wrapper') {
1079 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
1080 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
1081 rm $path -Force -ErrorAction SilentlyContinue
1083 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1084 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
1085 Add-Type -AssemblyName System.IO.Compression.FileSystem
1086 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
1091 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
1092 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
1095 stage('SonarQube Analysis') {
1096 def scannerHome = tool 'SonarScanner';
1097 withSonarQubeEnv() {
1098 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1104 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: c++ (manual) and objectivec: windows jenkinsfile 2`] = `
1109 stage('Download Build Wrapper') {
1111 $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
1112 rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
1113 rm $path -Force -ErrorAction SilentlyContinue
1115 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1116 (New-Object System.Net.WebClient).DownloadFile(http://localhost:9000/static/cpp/build-wrapper-win-x86.zip", $path)
1117 Add-Type -AssemblyName System.IO.Compression.FileSystem
1118 [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
1123 $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
1124 build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
1127 stage('SonarQube Analysis') {
1128 def scannerHome = tool 'SonarScanner';
1129 withSonarQubeEnv() {
1130 powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.compile-commands=bw-output/compile_commands.json"
1136 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: gradle jenkinsfile 1`] = `
1141 stage('SonarQube Analysis') {
1142 withSonarQubeEnv() {
1143 sh "./gradlew sonar"
1149 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: jenkins url 1`] = `"***JENKINS_SERVER_URL***/gitlab-webhook/post"`;
1151 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: linux dotnet core jenkinsfile 1`] = `
1156 stage('SonarQube Analysis') {
1157 def scannerHome = tool 'SonarScanner for MSBuild'
1158 withSonarQubeEnv() {
1159 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
1161 sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
1168 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: maven jenkinsfile 1`] = `
1173 stage('SonarQube Analysis') {
1174 def mvn = tool 'Default Maven';
1175 withSonarQubeEnv() {
1176 sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'"
1182 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: ref spec 1`] = `"+refs/heads/*:refs/remotes/@{remote}/*"`;
1184 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 1`] = `"sonar.projectKey=my-project"`;
1186 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: sonar-project.properties code 2`] = `"sonar.projectKey=my-project"`;
1188 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: windows dotnet core jenkinsfile 1`] = `
1193 stage('SonarQube Analysis') {
1194 def scannerHome = tool 'SonarScanner for MSBuild'
1195 withSonarQubeEnv() {
1196 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
1198 bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
1205 exports[`gitlab: can select devops platform and complete all the steps with copying code snippets: windows dotnet framework jenkinsfile 1`] = `
1210 stage('SonarQube Analysis') {
1211 def msbuildHome = tool 'Default MSBuild'
1212 def scannerHome = tool 'SonarScanner for MSBuild'
1213 withSonarQubeEnv() {
1214 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
1215 bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
1216 bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"