From 14178d4a51416eb9d0da77b6e058f51c8ed4a5fb Mon Sep 17 00:00:00 2001 From: Keith E <129207802+kiloecho-sonar@users.noreply.github.com> Date: Fri, 27 Jun 2025 20:01:19 -0500 Subject: [PATCH 1/4] Delete sonar-project.properties in project root This file will end up causing errors for the changes I will push to the build.yml file. --- sonar-project.properties | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index b24cc20..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1 +0,0 @@ -sonar.projectKey=kiloecho-sonar_cppAndcSharp_31bc1e05-0358-4305-993a-c4367ca5a954 From cdca941296a587f263e776296c9228e4631fb53f Mon Sep 17 00:00:00 2001 From: Keith E <129207802+kiloecho-sonar@users.noreply.github.com> Date: Fri, 27 Jun 2025 20:06:55 -0500 Subject: [PATCH 2/4] Delete Jenkinsfile --- Jenkinsfile | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index c97ee2a..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,44 +0,0 @@ -pipeline { - agent any - options { - // This is required if you want to clean before build with the "Workspace Cleanup Plugin" - skipDefaultCheckout(true) - } - stages { - stage('SCM') { - steps { - // Clean before build using the "Workspace Cleanup Plugin" - cleanWs() - checkout scm - } - } - - stage('Download Build Wrapper') { - steps { - powershell ''' - $path = ".sonar/build-wrapper-win-x86.zip" - New-Item -ItemType directory -Path .sonar -Force - [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 - (New-Object System.Net.WebClient).DownloadFile("https://ke100.ngrok.io/static/cpp/build-wrapper-win-x86.zip", $path) - Add-Type -AssemblyName System.IO.Compression.FileSystem - [System.IO.Compression.ZipFile]::ExtractToDirectory($path, ".sonar") - $env:Path += ";.sonar/build-wrapper-win-x86" - ''' - } - } - - stage('SonarQube Analysis and Build') { - steps { - script { - def msbuildHome = tool 'MSBuild'; // MSBuild from VS 2022 - def scannerHome = tool 'SonarScanner for MSBuild'; // Name of the SonarQube Scanner you created in "Global Tool Configuration" section - withSonarQubeEnv('KESQ10') { - bat "dotnet ${scannerHome}\\SonarScanner.MSBuild.dll begin /k:\"kiloecho-sonar_cppAndcSharp_AYgqQyx_BphOJVwWroRs\" /d:\"sonar.cfamily.build-wrapper-output=wrapper-output\" /d:sonar.verbose=true" - powershell "build-wrapper-win-x86-64.exe --out-dir wrapper-output ${msbuildHome} ./CPlusPlusAndCSharp.sln /t:Rebuild /nodeReuse:False /restore" - bat "dotnet ${scannerHome}\\SonarScanner.MSBuild.dll end" - } - } - } - } - } -} From bbba4aead30719f58901e24d9f6c6bd3bc97d1a9 Mon Sep 17 00:00:00 2001 From: Keith E <129207802+kiloecho-sonar@users.noreply.github.com> Date: Fri, 27 Jun 2025 20:07:08 -0500 Subject: [PATCH 3/4] Delete CPlusPlusAndCSharp/sonar-project.properties --- CPlusPlusAndCSharp/sonar-project.properties | 1 - 1 file changed, 1 deletion(-) delete mode 100644 CPlusPlusAndCSharp/sonar-project.properties diff --git a/CPlusPlusAndCSharp/sonar-project.properties b/CPlusPlusAndCSharp/sonar-project.properties deleted file mode 100644 index b24cc20..0000000 --- a/CPlusPlusAndCSharp/sonar-project.properties +++ /dev/null @@ -1 +0,0 @@ -sonar.projectKey=kiloecho-sonar_cppAndcSharp_31bc1e05-0358-4305-993a-c4367ca5a954 From 31deaf7d76c5f683e1517cea690cece8d9fdca5d Mon Sep 17 00:00:00 2001 From: Keith E <129207802+kiloecho-sonar@users.noreply.github.com> Date: Fri, 27 Jun 2025 20:07:22 -0500 Subject: [PATCH 4/4] Delete CSharpProject/sonar-project.properties --- CSharpProject/sonar-project.properties | 1 - 1 file changed, 1 deletion(-) delete mode 100644 CSharpProject/sonar-project.properties diff --git a/CSharpProject/sonar-project.properties b/CSharpProject/sonar-project.properties deleted file mode 100644 index b24cc20..0000000 --- a/CSharpProject/sonar-project.properties +++ /dev/null @@ -1 +0,0 @@ -sonar.projectKey=kiloecho-sonar_cppAndcSharp_31bc1e05-0358-4305-993a-c4367ca5a954