From 47287e366ce38f796a57df7cacdb50e563c708e8 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Fri, 17 May 2024 14:15:16 -0500 Subject: [PATCH 1/7] DYN-6742: Add Jenkins Pipelines. --- IronPython3Tests/IronPython3Tests.csproj | 6 ++++- Jenkinsfile | 14 ++++++++++ pipeline.yml | 34 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile create mode 100644 pipeline.yml diff --git a/IronPython3Tests/IronPython3Tests.csproj b/IronPython3Tests/IronPython3Tests.csproj index 7e33ae0..efa34db 100644 --- a/IronPython3Tests/IronPython3Tests.csproj +++ b/IronPython3Tests/IronPython3Tests.csproj @@ -12,6 +12,7 @@ + @@ -24,5 +25,8 @@ Always - + + + + 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/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..953db25 --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,34 @@ +version: 0.1.1 +env: + - 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" + +check_changelog_updated_on_pr: false +pipeline_os: "Windows" +force_slack_notification : true +language: csharp + +schedule : + cron_schedule : once_a_week + +build: + - + scripts: + - "dotnet build --configuration Release IronPython3Extension.sln" + +ci_test: + tests: + - + scripts: + - "dotnet test --no-build --configuration Release IronPython3Extension.sln --logger:junit" + test_report_dir: "./IronPython3Tests/TestResults" + +soc2: + harmony: + allow_branches: + - master + hidden_email_list: dynamo_ws_access + third_party_lib_paths: + - package_output From cb394cec2c3b1de0368b59a0e05109bf204cc020 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Fri, 17 May 2024 14:31:37 -0500 Subject: [PATCH 2/7] Remove the steps download and unzip, from build.yml. --- .github/workflows/build.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de9fbb2..e2b267f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,15 +32,6 @@ jobs: } else { Write-Error "python node dll was not found!" } - - name: Get DynamoRuntime from s3 - run: | - curl -o DynamoRuntime.zip https://dyn-builds-data.s3-us-west-2.amazonaws.com/DynamoCoreRuntime3.0.2.zip - ls - - name: Extract DynamoRuntime - run: | - 7z x DynamoRuntime.zip -o${{ github.workspace }}\DSIronPython3\IronPython3Tests\bin\Release\net8.0\DynamoRuntime - - - name: Run test with the dotnet CLI run: | dotnet test ${{ github.workspace }}\DSIronPython3 -p:Configuration=Release --filter "TestCategory!=Failure" --logger "trx;LogFileName=results.trx" --results-directory ${{ github.workspace }}\DSIronPython3\TestResults From 1a300a440e423711569ae28d236d5a1f21f8d9fd Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Mon, 20 May 2024 09:27:29 -0500 Subject: [PATCH 3/7] Pipeline changes and zip with PS. --- pipeline.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 953db25..37b747c 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -23,12 +23,34 @@ ci_test: - scripts: - "dotnet test --no-build --configuration Release IronPython3Extension.sln --logger:junit" - test_report_dir: "./IronPython3Tests/TestResults" + test_report_dir: "IronPython3Tests/TestResults" + test_report_pattern: + format: "junit" + pattern: "*.xml" soc2: harmony: allow_branches: - master hidden_email_list: dynamo_ws_access + fail_on_audit_failure: false third_party_lib_paths: - package_output + +deployment: + - + type: sign + files_to_sign: + - package_output\DSIronPython3\bin\DSIronPythonEmpty.dll + - package_output\DSIronPython3\extra\IronPython.dll + - package_output\DSIronPython3\extra\IronPython3Extension.dll + + - + type: artifacts + allow_branches: master + publish_to_artifactory: false + publish_to_jenkins: true + scripts: + - "pwsh.exe -ExecutionPolicy ByPass -Command Compress-Archive -Path .\\package_output\\DSIronPython3 -DestinationPath .\\DSIronPython3Package.zip" + outputs: + - "DSIronPython3Package.zip" \ No newline at end of file From b8dbf1e432efd6e15b568a9416f9fcbc0824bdcd Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Mon, 20 May 2024 10:00:47 -0500 Subject: [PATCH 4/7] Failure filter added. --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 37b747c..a96e121 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -22,7 +22,7 @@ ci_test: tests: - scripts: - - "dotnet test --no-build --configuration Release IronPython3Extension.sln --logger:junit" + - "dotnet test --no-build --configuration Release IronPython3Extension.sln --filter \"TestCategory!=Failure\" --logger:junit" test_report_dir: "IronPython3Tests/TestResults" test_report_pattern: format: "junit" From 312a2610dec265e665366946cfd93408b67c2447 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Mon, 20 May 2024 10:08:15 -0500 Subject: [PATCH 5/7] Sign change. --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index a96e121..9eb201e 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -42,7 +42,7 @@ deployment: type: sign files_to_sign: - package_output\DSIronPython3\bin\DSIronPythonEmpty.dll - - package_output\DSIronPython3\extra\IronPython.dll + - package_output\DSIronPython3\extra\python3eval.dll - package_output\DSIronPython3\extra\IronPython3Extension.dll - From b8dee36ebc946cd020b68a1580bc5c96a12e8ad7 Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Mon, 20 May 2024 10:23:37 -0500 Subject: [PATCH 6/7] New version --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 9eb201e..5f3e780 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -1,4 +1,4 @@ -version: 0.1.1 +version: 1.4.0 env: - JENKINS_NODE_WIN: "DynamoWinBuild" - SLACK_QUANTUM_BUILD_CHANNEL : "#dynamo-jenkinsbuild" From af29320d0420c77c320f7118af9d1922b61cb3cb Mon Sep 17 00:00:00 2001 From: Alexis Erazo Date: Tue, 21 May 2024 08:09:48 -0500 Subject: [PATCH 7/7] DSIronPython3Empty correction. --- pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 5f3e780..76717c3 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -41,7 +41,7 @@ deployment: - type: sign files_to_sign: - - package_output\DSIronPython3\bin\DSIronPythonEmpty.dll + - package_output\DSIronPython3\bin\DSIronPython3Empty.dll - package_output\DSIronPython3\extra\python3eval.dll - package_output\DSIronPython3\extra\IronPython3Extension.dll