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 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 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" - } - } - } - } - } -} 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