From 219ced2c3b2f81ac1cdb9c1578979bea4c2567ea Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Tue, 23 Jul 2024 12:23:42 -0500 Subject: [PATCH 1/4] Move the Pipeline file and add Jenkinsfile. --- Jenkinsfile | 14 ++++++++++++++ DynaShape/pipeline.yml => pipeline.yml | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Jenkinsfile rename DynaShape/pipeline.yml => pipeline.yml (87%) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0634363 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,14 @@ +#!/usr/bin/env groovy + +@Library('PSL@master') +@Library('CILibrary@CBP/stable') _ + +StartPipeline() + +@NonCPS +def printParams() { + env.getEnvironment().each { name, value -> println "$name : $value" } +} +println "*******************************************************************" +printParams() +println "*******************************************************************" diff --git a/DynaShape/pipeline.yml b/pipeline.yml similarity index 87% rename from DynaShape/pipeline.yml rename to pipeline.yml index da7ecd5..a00b081 100644 --- a/DynaShape/pipeline.yml +++ b/pipeline.yml @@ -15,12 +15,12 @@ schedule: build: - scripts: - - "dotnet build --configuration Release DynaShape\DynaShape.sln" + - "dotnet build --configuration Release DynaShape\\DynaShape.sln" ci_test: tests: - scripts: - - dotnet coverage collect "dotnet test --no-build --configuration Release DynaShape\DynaShape.sln --filter \"TestCategory!=Failure\" --logger:junit --logger:trx" -f xml -o "coverage.xml" + - dotnet coverage collect "dotnet test --no-build --configuration Release DynaShape\\DynaShape.sln --filter \"TestCategory!=Failure\" --logger:junit --logger:trx" -f xml -o "coverage.xml" test_report_dir: "DynaShapeTests/TestResults" test_report_pattern: format: "junit" From 4d37d78a193f178ccb24f5e54caf402cc46c0f17 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Tue, 23 Jul 2024 20:40:41 -0500 Subject: [PATCH 2/4] Updating the tests. --- pipeline.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index a00b081..3cd5411 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -17,15 +17,6 @@ build: - scripts: - "dotnet build --configuration Release DynaShape\\DynaShape.sln" -ci_test: - tests: - - scripts: - - dotnet coverage collect "dotnet test --no-build --configuration Release DynaShape\\DynaShape.sln --filter \"TestCategory!=Failure\" --logger:junit --logger:trx" -f xml -o "coverage.xml" - test_report_dir: "DynaShapeTests/TestResults" - test_report_pattern: - format: "junit" - pattern: "*.xml" - code_analysis: sonarqube: useDotnetSonarScanner: true From 814b02f30fcad22000f031b51e212e43923ccf8e Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Wed, 24 Jul 2024 09:21:39 -0500 Subject: [PATCH 3/4] Code-analysis. --- pipeline.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index 3cd5411..f785a1a 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -21,8 +21,6 @@ code_analysis: sonarqube: useDotnetSonarScanner: true scanOnAnyBranch: true - coverage_reports: - - coverage.xml soc2: harmony: From 294bf91263e0162b9472c20612d8d5c1f8e4dc96 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Wed, 24 Jul 2024 10:14:01 -0500 Subject: [PATCH 4/4] Change from dotnet to msbuild. --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index f785a1a..d2262ce 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -15,7 +15,7 @@ schedule: build: - scripts: - - "dotnet build --configuration Release DynaShape\\DynaShape.sln" + - "msbuild /p:Configuration=Release DynaShape\\DynaShape.sln" code_analysis: sonarqube: