From 40898f08e477ed4e424871566939dbe30349d674 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Tue, 11 Jun 2024 19:19:58 -0500 Subject: [PATCH 1/6] Add Sonar stuff. --- pipeline.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index a6c8046..22a5374 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -43,18 +43,25 @@ build: scripts: - "pwsh.exe -ExecutionPolicy ByPass -File .\\cicdscripts\\DownloadCICDResources.ps1" - "pwsh.exe -ExecutionPolicy ByPass -File .\\%COMMON_TOOLS_DIR%\\scripts\\SetupHost.ps1" - - "dotnet build src/gregClient.sln --configuration Release" + - "dotnet build --configuration Release src/GregClient.sln" ci_test: tests: - scripts: - - dotnet test src/GregClientTests/GregClientTests.csproj --logger:"junit;LogFilePath=testresults\\testresults.xml" + - dotnet coverage collect "dotnet test --no-build --configuration Release src/GregClient.sln src/GregClientTests/GregClientTests.csproj --logger:junit --logger:trx" -f xml -o "coverage.xml" - test_report_dir: src\\GregClientTests\\testresults + test_report_dir: src\\GregClientTests\\TestResults test_report_pattern: format: "junit" pattern: "*.xml" +code_analysis: + sonarqube: + useDotnetSonarScanner: true + scanOnAnyBranch: true + coverage_reports: + - coverage.xml + soc2: harmony: hidden_email_list: dynamo_ws_access From 789e8ac2180e4a0d144b86753ef4ebe5767b8732 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Wed, 12 Jun 2024 08:48:00 -0500 Subject: [PATCH 2/6] Command update! --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 22a5374..9193b10 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -48,7 +48,7 @@ ci_test: tests: - scripts: - - dotnet coverage collect "dotnet test --no-build --configuration Release src/GregClient.sln src/GregClientTests/GregClientTests.csproj --logger:junit --logger:trx" -f xml -o "coverage.xml" + - dotnet coverage collect "dotnet test --no-build --configuration Release src/GregClient.sln --logger:junit --logger:trx" -f xml -o "coverage.xml" test_report_dir: src\\GregClientTests\\TestResults test_report_pattern: From c68f65f011c8623f7e5c13157afbb97a37ead9e2 Mon Sep 17 00:00:00 2001 From: Jorgen Dahl Date: Mon, 17 Jun 2024 11:51:55 -0400 Subject: [PATCH 3/6] Use common build machines (#102) The perf machines in the Boston office currently have no access to SonarQube. Ticket has been filed. --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 9193b10..dd7a724 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -1,6 +1,6 @@ version: 0.1.1 env: - - JENKINS_NODE_WIN: "Dynamo_Win_Perf" + - JENKINS_NODE_WIN: "DynamoWinBuild" - SLACK_QUANTUM_BUILD_CHANNEL : "#dynamo-jenkinsbuild" - SLACK_QUANTUM_BUILD_CREDENTIAL_ID : "slack-notify-token" - MAIL_QUANTUM_BUILD_RECIPIENT : "dynamo.dev@autodesk.com" From 5beef4021c72dfa4dca79f9b99b53d861fd3bd16 Mon Sep 17 00:00:00 2001 From: AlexisErazoGlobant <168037709+AlexisErazoGlobant@users.noreply.github.com> Date: Tue, 18 Jun 2024 09:59:37 -0500 Subject: [PATCH 4/6] Testing dotnet Scanner for @sm6srw (#103) Co-authored-by: Alexis Erazo --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index dd7a724..b00631e 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -57,7 +57,7 @@ ci_test: code_analysis: sonarqube: - useDotnetSonarScanner: true + useDotnetSonarScanner: false scanOnAnyBranch: true coverage_reports: - coverage.xml From 58f948ea3cd256901afefbef2e175fad767aa098 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Thu, 20 Jun 2024 10:21:10 -0500 Subject: [PATCH 5/6] Remove dotnet coverage part of test scripts. --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index b00631e..1defbc6 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -48,7 +48,7 @@ ci_test: tests: - scripts: - - dotnet coverage collect "dotnet test --no-build --configuration Release src/GregClient.sln --logger:junit --logger:trx" -f xml -o "coverage.xml" + - "dotnet test --no-build --configuration Release src/GregClient.sln --logger:junit --logger:trx" test_report_dir: src\\GregClientTests\\TestResults test_report_pattern: From f908fe3a75f85fe4c106b2ba0b47a6994c1ab681 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Fri, 28 Jun 2024 10:47:41 -0500 Subject: [PATCH 6/6] Add dotnet sonar scanner. --- pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index 6d0cc9f..3df7a34 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -37,7 +37,7 @@ ci_test: tests: - scripts: - - "dotnet test --no-build --configuration Release src/GregClient.sln --logger:junit --logger:trx" + - dotnet coverage collect "dotnet test --no-build --configuration Release src/GregClient.sln --logger:junit --logger:trx" -f xml -o "coverage.xml" test_report_dir: src\\GregClientTests\\TestResults test_report_pattern: @@ -46,7 +46,7 @@ ci_test: code_analysis: sonarqube: - useDotnetSonarScanner: false + useDotnetSonarScanner: true scanOnAnyBranch: true coverage_reports: - coverage.xml