From 2b918795c629e3047d74c4a44663536b8692652b Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 2 May 2024 16:40:12 +0530 Subject: [PATCH 001/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f2b385c1..936e5ded 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: self-hosted + runs-on: windows-latest defaults: run: From 3fdda1da9e4578815de94bd8f12a77bb0e311e5a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 2 May 2024 16:52:00 +0530 Subject: [PATCH 002/120] Update compile.yml disable sw360 instance and test stage --- .github/workflows/compile.yml | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 936e5ded..8cd1439e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -102,32 +102,7 @@ jobs: Write-Host "::set-output name=LicenseClearingTool::$($fileName)" $outPath = Join-Path $outFolder $fileName Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal - - - name: SW360 Instance refresh - #if: ${{ false }} # disable for now - run: | - docker exec -dt sw360confctnr1 service postgresql stop - docker stop sw360confctnr1 - docker rm sw360confctnr1 - docker run --name sw360confctnr1 --memory=7g -t -d -p ${env:SW360APPPORT}:8080 -p 5990:5984 -p 5440:5432 ${env:DOCKERDEVARTIFACTORY}/energy-dev/software-clearing/sw360/sw360conf:latest - Start-Sleep -s 200 - env: - SW360APPPORT: ${{ secrets.SW360APPPORT }} - DOCKERDEVARTIFACTORY: ${{ secrets.DOCKERDEVARTIFACTORY }} - - - name: Test - #if: ${{ false }} # disable for now - run: | - $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj - Write-Host "**************************The test projects considered for execution: $TestProjects ******************************" - Write-Host "********************************************************************************************************************" - foreach ($Project in $TestProjects) - { - Write-Host $Project.DirectoryName - $TestProject = $Project.DirectoryName - Push-Location $Project.PSParentPath - dotnet test --no-build --configuration Release - } + - name: Archive Build Output uses: actions/upload-artifact@v2 From f5db091acc02b73236f61f92612262acf9ac8c2b Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 2 May 2024 18:28:23 +0530 Subject: [PATCH 003/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8cd1439e..f418c403 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -126,14 +126,14 @@ jobs: - name: Build the Docker image id: builddocker - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - name: Archive docker image - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 with: name: docker-continuous-clearing From 2ae27aa36a7b74a4716e6065c27f8f03bc98410a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 7 May 2024 13:00:38 +0530 Subject: [PATCH 004/120] Update compile.yml --- .github/workflows/compile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f418c403..d9ebc022 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: my-docker-image:latest defaults: run: @@ -126,14 +126,14 @@ jobs: - name: Build the Docker image id: builddocker - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - name: Archive docker image - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 with: name: docker-continuous-clearing From dbd8734cc6f7f6f0b755d710dc0a0ec293dfcc19 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 7 May 2024 13:03:50 +0530 Subject: [PATCH 005/120] Update compile.yml --- .github/workflows/compile.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d9ebc022..1dcfda66 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: my-docker-image:latest + runs-on: ubuntu-latest defaults: run: @@ -24,6 +24,11 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + + - name: Use Docker + uses: actions/setup-docker@v2 + with: + image: my-docker-image:latest - name: Setup Version uses: gittools/actions/gitversion/setup@v0.10.2 From 0c4ce37ecd4b887e90ceed6f815ba65da5714234 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 8 May 2024 16:29:00 +0530 Subject: [PATCH 006/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 1dcfda66..e03567af 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest defaults: run: From af9af8f5ca44607e2e6f60b2545442ab92f01469 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 8 May 2024 16:30:38 +0530 Subject: [PATCH 007/120] Update compile.yml --- .github/workflows/compile.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e03567af..a9a937d0 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -24,11 +24,6 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - - name: Use Docker - uses: actions/setup-docker@v2 - with: - image: my-docker-image:latest - name: Setup Version uses: gittools/actions/gitversion/setup@v0.10.2 From 7ef0946617e528ecd0eb266c02cb6d4df55352b2 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 8 May 2024 16:38:29 +0530 Subject: [PATCH 008/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a9a937d0..03de9a1e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest defaults: run: From 791a132fee651b5e7fc124b42722f8f4f2a3fe52 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 8 May 2024 16:39:51 +0530 Subject: [PATCH 009/120] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 03de9a1e..e29fed1f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -51,6 +51,7 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 + if: ${{ success() || failure() }} - name: update appSettingsSW360IntegrationTest.json From 4126529cbaeb64d6a546edb7582069665dd5f171 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 8 May 2024 16:46:08 +0530 Subject: [PATCH 010/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e29fed1f..d8a5b7ce 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -51,7 +51,7 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - if: ${{ success() || failure() }} + if: ${{ false }} # disable for now - name: update appSettingsSW360IntegrationTest.json From 47d3049da0b1ae4b409b939264c44693c950750c Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 8 May 2024 16:49:53 +0530 Subject: [PATCH 011/120] Update compile.yml --- .github/workflows/compile.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d8a5b7ce..9d7c6c37 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -52,6 +52,22 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 if: ${{ false }} # disable for now + + - name: Build the Docker image + id: builddocker + #if: ${{ false }} # disable for now + run: | + docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 + docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar + Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" + + - name: Archive docker image + #if: ${{ false }} # disable for now + uses: actions/upload-artifact@v2 + with: + name: docker-continuous-clearing + path: | + *.tar - name: update appSettingsSW360IntegrationTest.json @@ -126,7 +142,7 @@ jobs: *.nupkg - name: Build the Docker image - id: builddocker + # id: builddocker #if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 From d7e7baeaa47f04ad47317fa0a43385476a7b9a16 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 9 May 2024 10:53:42 +0530 Subject: [PATCH 012/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9d7c6c37..9187a6da 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: debian-latest defaults: run: From 4fc066f87a0f2ecfa7bb900c2ac452cdb6fbc29b Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 9 May 2024 16:10:29 +0530 Subject: [PATCH 013/120] Update compile.yml --- .github/workflows/compile.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9187a6da..6550c71d 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,11 @@ on: jobs: build: - runs-on: debian-latest + runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 + options: --platform linux/amd64 + defaults: run: From 235f2521e556d413a055735a56579810d9968b67 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 9 May 2024 16:13:34 +0530 Subject: [PATCH 014/120] Update compile.yml --- .github/workflows/compile.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 6550c71d..63e16793 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -57,6 +57,12 @@ jobs: uses: microsoft/setup-msbuild@v1.3.1 if: ${{ false }} # disable for now + - name: Restore Packages + run: dotnet restore src\LicenseClearingTool.sln + + - name: Build + run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + - name: Build the Docker image id: builddocker #if: ${{ false }} # disable for now @@ -95,11 +101,7 @@ jobs: FOSSYAPPPORT: ${{ secrets.FOSSYAPPPORT }} JFROGURL: ${{ secrets.JFROGURL }} - - name: Restore Packages - run: dotnet restore src\LicenseClearingTool.sln - - - name: Build - run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + - name: Archive Build Log uses: actions/upload-artifact@v2 From c1e5fbfd98b0cd58eb0d888f11596009494cc2ec Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 9 May 2024 16:18:17 +0530 Subject: [PATCH 015/120] Update compile.yml --- .github/workflows/compile.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 63e16793..78e7b433 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,11 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 - options: --platform linux/amd64 - + runs-on: windows-latest defaults: run: @@ -63,6 +59,9 @@ jobs: - name: Build run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Build the Docker image id: builddocker #if: ${{ false }} # disable for now From 8fb7d49ca67679a8087f95022d58918047603022 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 9 May 2024 16:21:15 +0530 Subject: [PATCH 016/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 78e7b433..90e211f9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -40,7 +40,7 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - name: get SemVer - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now id: gitversion run: | echo "SemVer: v$($env:GitVersion_SemVer)" @@ -51,7 +51,7 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now - name: Restore Packages run: dotnet restore src\LicenseClearingTool.sln From 4a6ade4b97656e3e40a8df74bd62655a23cfd1d9 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 9 May 2024 16:34:38 +0530 Subject: [PATCH 017/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 90e211f9..029badc1 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -59,8 +59,8 @@ jobs: - name: Build run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + #- name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v1 - name: Build the Docker image id: builddocker From 148c913973dc467117b994aced62085274d694dd Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 12:04:27 +0530 Subject: [PATCH 018/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 029badc1..90e211f9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -59,8 +59,8 @@ jobs: - name: Build run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - #- name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 - name: Build the Docker image id: builddocker From 447ab20fc8ee5f90eb470b2c06b118fcb64c761a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 14:33:57 +0530 Subject: [PATCH 019/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 90e211f9..18fd83e9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest defaults: run: From 5a59156513fba34eaccc2155ab44db00dfc19415 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 14:35:51 +0530 Subject: [PATCH 020/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 18fd83e9..8db6dacf 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -40,7 +40,7 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - name: get SemVer - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now id: gitversion run: | echo "SemVer: v$($env:GitVersion_SemVer)" @@ -51,7 +51,7 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now - name: Restore Packages run: dotnet restore src\LicenseClearingTool.sln From dc2080382555bd773198537159012175a88559a1 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:02:01 +0530 Subject: [PATCH 021/120] Update compile.yml --- .github/workflows/compile.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8db6dacf..f3dd131b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -39,6 +39,14 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + - name: Install PowerShell + run : + sudo apt-get update + sudo apt-get install- -y powershell + + - name: Verifyu PowerShell installation + run: pwsh --version + - name: get SemVer if: ${{ false }} # disable for now id: gitversion From 2d1d2aeb1217ba133f4f42319ab873a50f4527d4 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:10:48 +0530 Subject: [PATCH 022/120] Update compile.yml --- .github/workflows/compile.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f3dd131b..ace3a6b1 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,9 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: widnows-latest + container: + image: ubuntu:latest defaults: run: @@ -44,7 +46,7 @@ jobs: sudo apt-get update sudo apt-get install- -y powershell - - name: Verifyu PowerShell installation + - name: Verify PowerShell installation run: pwsh --version - name: get SemVer From d3cd9d11c854308253ced33249b4d9716bbbf23b Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:16:33 +0530 Subject: [PATCH 023/120] Update compile.yml --- .github/workflows/compile.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index ace3a6b1..527d8df5 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -40,14 +40,15 @@ jobs: useConfigFile: true env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - - name: Install PowerShell - run : - sudo apt-get update - sudo apt-get install- -y powershell - - - name: Verify PowerShell installation - run: pwsh --version + + - name: Install PowerShell + uses: actions/setup-powershell@v1 + with: + version: 7.1.3 + - name: Run PowerShell script + shell: pwsh + script: | + Write-Host "Hello, World! - name: get SemVer if: ${{ false }} # disable for now From 8cb7bdcb0e4c91cea6a7ca6f3110eebe0d8c55c8 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:20:02 +0530 Subject: [PATCH 024/120] Update compile.yml --- .github/workflows/compile.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 527d8df5..382fdee7 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,9 +8,7 @@ on: jobs: build: - runs-on: widnows-latest - container: - image: ubuntu:latest + runs-on: ubuntu-latest defaults: run: From 32f01c91be53b48ef8c0095d9005e8cdeeb061f6 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:25:41 +0530 Subject: [PATCH 025/120] Update compile.yml --- .github/workflows/compile.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 382fdee7..2958b3b3 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -4,9 +4,7 @@ on: push: pull_request: - jobs: - build: runs-on: ubuntu-latest From 45df745059064f2d757b23f5a3e1dfbf5fa11921 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:26:35 +0530 Subject: [PATCH 026/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 2958b3b3..9f39297f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest defaults: run: From a1d7fc6cddb5cd401392fd56d95116e5502a09fc Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:27:11 +0530 Subject: [PATCH 027/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9f39297f..d1a40adf 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -10,7 +10,7 @@ jobs: defaults: run: - working-directory: . + working-directory: outputs: semver: ${{ steps.gitversion.outputs.semver }} LicenseClearingTool: ${{ steps.packageBuildResults.outputs.LicenseClearingTool }} From 68afd406158975d08ca5cf9c5921dc242960ced4 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:29:19 +0530 Subject: [PATCH 028/120] Update compile.yml --- .github/workflows/compile.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d1a40adf..7b983c46 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -4,14 +4,15 @@ on: push: pull_request: + jobs: + build: - runs-on: ubuntu-latest + runs-on: ubuntu-latset defaults: run: - working-directory: - outputs: + working-directory: . semver: ${{ steps.gitversion.outputs.semver }} LicenseClearingTool: ${{ steps.packageBuildResults.outputs.LicenseClearingTool }} nupkg-LicenseClearingTool: ${{ steps.createNupkg.outputs.nupkg-LicenseClearingTool }} From aa9883283d6ff7cc8e2e1d07fbd263deb84ba62e Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:30:03 +0530 Subject: [PATCH 029/120] Update compile.yml --- .github/workflows/compile.yml | 73 ++++++++++++++++------------------- 1 file changed, 34 insertions(+), 39 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 7b983c46..f2b385c1 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,11 +8,12 @@ on: jobs: build: - runs-on: ubuntu-latset + runs-on: self-hosted defaults: run: working-directory: . + outputs: semver: ${{ steps.gitversion.outputs.semver }} LicenseClearingTool: ${{ steps.packageBuildResults.outputs.LicenseClearingTool }} nupkg-LicenseClearingTool: ${{ steps.createNupkg.outputs.nupkg-LicenseClearingTool }} @@ -37,15 +38,6 @@ jobs: useConfigFile: true env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - - name: Install PowerShell - uses: actions/setup-powershell@v1 - with: - version: 7.1.3 - - name: Run PowerShell script - shell: pwsh - script: | - Write-Host "Hello, World! - name: get SemVer if: ${{ false }} # disable for now @@ -59,32 +51,6 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now - - - name: Restore Packages - run: dotnet restore src\LicenseClearingTool.sln - - - name: Build - run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Build the Docker image - id: builddocker - #if: ${{ false }} # disable for now - run: | - docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 - docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar - Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - - - name: Archive docker image - #if: ${{ false }} # disable for now - uses: actions/upload-artifact@v2 - with: - name: docker-continuous-clearing - path: | - *.tar - name: update appSettingsSW360IntegrationTest.json @@ -108,7 +74,11 @@ jobs: FOSSYAPPPORT: ${{ secrets.FOSSYAPPPORT }} JFROGURL: ${{ secrets.JFROGURL }} - + - name: Restore Packages + run: dotnet restore src\LicenseClearingTool.sln + + - name: Build + run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - name: Archive Build Log uses: actions/upload-artifact@v2 @@ -132,7 +102,32 @@ jobs: Write-Host "::set-output name=LicenseClearingTool::$($fileName)" $outPath = Join-Path $outFolder $fileName Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal - + + - name: SW360 Instance refresh + #if: ${{ false }} # disable for now + run: | + docker exec -dt sw360confctnr1 service postgresql stop + docker stop sw360confctnr1 + docker rm sw360confctnr1 + docker run --name sw360confctnr1 --memory=7g -t -d -p ${env:SW360APPPORT}:8080 -p 5990:5984 -p 5440:5432 ${env:DOCKERDEVARTIFACTORY}/energy-dev/software-clearing/sw360/sw360conf:latest + Start-Sleep -s 200 + env: + SW360APPPORT: ${{ secrets.SW360APPPORT }} + DOCKERDEVARTIFACTORY: ${{ secrets.DOCKERDEVARTIFACTORY }} + + - name: Test + #if: ${{ false }} # disable for now + run: | + $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj + Write-Host "**************************The test projects considered for execution: $TestProjects ******************************" + Write-Host "********************************************************************************************************************" + foreach ($Project in $TestProjects) + { + Write-Host $Project.DirectoryName + $TestProject = $Project.DirectoryName + Push-Location $Project.PSParentPath + dotnet test --no-build --configuration Release + } - name: Archive Build Output uses: actions/upload-artifact@v2 @@ -155,7 +150,7 @@ jobs: *.nupkg - name: Build the Docker image - # id: builddocker + id: builddocker #if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 From c7def4d8c3d30900a66c4fa6bc21bbf7764613c8 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:30:39 +0530 Subject: [PATCH 030/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f2b385c1..f19d7dfd 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: self-hosted + runs-on: ubuntu-latest defaults: run: From 8d7824f0d866d209498be6069cf79370d5b4738f Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 15:31:59 +0530 Subject: [PATCH 031/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f19d7dfd..936e5ded 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest defaults: run: From d418adf3770c38b5a34def3c0b98a4b1623e56b6 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:05:22 +0530 Subject: [PATCH 032/120] Update compile.yml --- .github/workflows/compile.yml | 87 +++++++++++++++++++++-------------- 1 file changed, 53 insertions(+), 34 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 936e5ded..f523d125 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest defaults: run: @@ -39,6 +39,30 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + - name: Setup Version + uses: gittools/actions/gitversion/setup@v0.10.2 + with: + versionSpec: '5.12.0' + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + + - name: Determine Version + uses: gittools/actions/gitversion/execute@v0.10.2 + with: + useConfigFile: true + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + + - name: Install PowerShell + uses: actions/setup-powershell@v1 + with: + version: 7.1.3 + + - name: Run PowerShell script + shell: pwsh + run: | + Write-Host "Hello, World! + - name: get SemVer if: ${{ false }} # disable for now id: gitversion @@ -51,6 +75,31 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 + if: ${{ false }} # disable for now + + - name: Restore Packages + run: dotnet restore src\LicenseClearingTool.sln + + - name: Build + run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build the Docker image + id: builddocker + #if: ${{ false }} # disable for now + run: | + docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 + docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar + Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" + - name: Archive docker image + #if: ${{ false }} # disable for now + uses: actions/upload-artifact@v2 + with: + name: docker-continuous-clearing + path: | + *.tar - name: update appSettingsSW360IntegrationTest.json @@ -74,11 +123,7 @@ jobs: FOSSYAPPPORT: ${{ secrets.FOSSYAPPPORT }} JFROGURL: ${{ secrets.JFROGURL }} - - name: Restore Packages - run: dotnet restore src\LicenseClearingTool.sln - - - name: Build - run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + - name: Archive Build Log uses: actions/upload-artifact@v2 @@ -102,32 +147,7 @@ jobs: Write-Host "::set-output name=LicenseClearingTool::$($fileName)" $outPath = Join-Path $outFolder $fileName Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal - - - name: SW360 Instance refresh - #if: ${{ false }} # disable for now - run: | - docker exec -dt sw360confctnr1 service postgresql stop - docker stop sw360confctnr1 - docker rm sw360confctnr1 - docker run --name sw360confctnr1 --memory=7g -t -d -p ${env:SW360APPPORT}:8080 -p 5990:5984 -p 5440:5432 ${env:DOCKERDEVARTIFACTORY}/energy-dev/software-clearing/sw360/sw360conf:latest - Start-Sleep -s 200 - env: - SW360APPPORT: ${{ secrets.SW360APPPORT }} - DOCKERDEVARTIFACTORY: ${{ secrets.DOCKERDEVARTIFACTORY }} - - - name: Test - #if: ${{ false }} # disable for now - run: | - $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj - Write-Host "**************************The test projects considered for execution: $TestProjects ******************************" - Write-Host "********************************************************************************************************************" - foreach ($Project in $TestProjects) - { - Write-Host $Project.DirectoryName - $TestProject = $Project.DirectoryName - Push-Location $Project.PSParentPath - dotnet test --no-build --configuration Release - } + - name: Archive Build Output uses: actions/upload-artifact@v2 @@ -150,13 +170,12 @@ jobs: *.nupkg - name: Build the Docker image - id: builddocker + # id: builddocker #if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - - name: Archive docker image #if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 From 75f2ab3566361ca2d899ed28c18d08f19907b583 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:08:36 +0530 Subject: [PATCH 033/120] Update compile.yml --- .github/workflows/compile.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f523d125..520d64dc 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,10 +20,16 @@ jobs: docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v2 + - name: Install PowerShell + uses: actions/setup-powershell@v1 with: - fetch-depth: 0 + version: 7.1.3 + + - name: Run PowerShell script + shell: pwsh + run: | + Write-Host "Hello, World!" - name: Setup Version uses: gittools/actions/gitversion/setup@v0.10.2 From 7422de82999603e992ae38041b16bbb6f01a5dc2 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:11:20 +0530 Subject: [PATCH 034/120] Update compile.yml From 6038c2ab7af5355735b273637e88b52279a27707 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:18:08 +0530 Subject: [PATCH 035/120] Update compile.yml --- .github/workflows/compile.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 520d64dc..81e2a02a 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,16 +20,12 @@ jobs: docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: - - uses: actions/checkout@v2 - - name: Install PowerShell - uses: actions/setup-powershell@v1 - with: - version: 7.1.3 - - - name: Run PowerShell script + - uses: actions/checkout@v4 + - name: Install from PSGallery shell: pwsh run: | - Write-Host "Hello, World!" + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module SqlServer, PSScriptAnalyzer - name: Setup Version uses: gittools/actions/gitversion/setup@v0.10.2 From faef27d733bf33b15836138556cfe47acb24bea4 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:20:28 +0530 Subject: [PATCH 036/120] Update compile.yml --- .github/workflows/compile.yml | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 81e2a02a..50c3d211 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -40,30 +40,6 @@ jobs: useConfigFile: true env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - - name: Setup Version - uses: gittools/actions/gitversion/setup@v0.10.2 - with: - versionSpec: '5.12.0' - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - - name: Determine Version - uses: gittools/actions/gitversion/execute@v0.10.2 - with: - useConfigFile: true - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - - name: Install PowerShell - uses: actions/setup-powershell@v1 - with: - version: 7.1.3 - - - name: Run PowerShell script - shell: pwsh - run: | - Write-Host "Hello, World! - name: get SemVer if: ${{ false }} # disable for now @@ -95,6 +71,7 @@ jobs: docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" + - name: Archive docker image #if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 From 8eb3175d80fa69cd3f56429d7796bcff717054de Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:23:01 +0530 Subject: [PATCH 037/120] Update compile.yml --- .github/workflows/compile.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 50c3d211..88f335cc 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,13 +20,6 @@ jobs: docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: - - uses: actions/checkout@v4 - - name: Install from PSGallery - shell: pwsh - run: | - Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module SqlServer, PSScriptAnalyzer - - name: Setup Version uses: gittools/actions/gitversion/setup@v0.10.2 with: @@ -50,6 +43,13 @@ jobs: $fileName = "dummy-v$($env:GitVersion_SemVer)" echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" Write-Host "Filename: '$fileName'" + + - uses: actions/checkout@v4 + - name: Install from PSGallery + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module SqlServer, PSScriptAnalyzer - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 From 8d94b1a1cbaa4243e5f4b32f57bd398d9c66512f Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:24:49 +0530 Subject: [PATCH 038/120] Update compile.yml --- .github/workflows/compile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 88f335cc..ace6d138 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,7 +20,8 @@ jobs: docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: - - name: Setup Version + - name: Setup Version + if: ${{ false }} # disable for now uses: gittools/actions/gitversion/setup@v0.10.2 with: versionSpec: '5.12.0' From a5b558390ef91eeedcc32cd3d46983041c9b4a32 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:25:49 +0530 Subject: [PATCH 039/120] Update compile.yml --- .github/workflows/compile.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index ace6d138..ed4d7b40 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -34,6 +34,13 @@ jobs: useConfigFile: true env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE + + - uses: actions/checkout@v4 + - name: Install from PSGallery + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module SqlServer, PSScriptAnalyzer - name: get SemVer if: ${{ false }} # disable for now @@ -44,13 +51,6 @@ jobs: $fileName = "dummy-v$($env:GitVersion_SemVer)" echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" Write-Host "Filename: '$fileName'" - - - uses: actions/checkout@v4 - - name: Install from PSGallery - shell: pwsh - run: | - Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module SqlServer, PSScriptAnalyzer - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 From 41982f3877a367c10aa69db369c213c629a9c673 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:26:41 +0530 Subject: [PATCH 040/120] Update compile.yml --- .github/workflows/compile.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index ed4d7b40..fd7ef6d5 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -28,7 +28,8 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - name: Determine Version + - name: Determine Version + if: ${{ false }} # disable for now uses: gittools/actions/gitversion/execute@v0.10.2 with: useConfigFile: true From 0c21db685c33545e48b58d4b8689c335a1fc87a4 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:27:59 +0530 Subject: [PATCH 041/120] Update compile.yml --- .github/workflows/compile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index fd7ef6d5..3c822afe 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -58,9 +58,11 @@ jobs: if: ${{ false }} # disable for now - name: Restore Packages + if: ${{ false }} # disable for now run: dotnet restore src\LicenseClearingTool.sln - name: Build + if: ${{ false }} # disable for now run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - name: Set up Docker Buildx From 1d91009f24c2f993708e921ece4c5fd46d2211b8 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:29:40 +0530 Subject: [PATCH 042/120] Update compile.yml --- .github/workflows/compile.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 3c822afe..2421d750 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -65,9 +65,6 @@ jobs: if: ${{ false }} # disable for now run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Build the Docker image id: builddocker #if: ${{ false }} # disable for now From e729f86b3701b8caa633db02014f1dd2fa1cce3c Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:33:25 +0530 Subject: [PATCH 043/120] Update compile.yml --- .github/workflows/compile.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 2421d750..a98c6d7e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -20,6 +20,11 @@ jobs: docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup Version if: ${{ false }} # disable for now uses: gittools/actions/gitversion/setup@v0.10.2 From 2b3bd4ab40b81fd4e61c735fba108f3089ae7e39 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 14 May 2024 16:35:37 +0530 Subject: [PATCH 044/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a98c6d7e..685f2567 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -41,7 +41,7 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 - name: Install from PSGallery shell: pwsh run: | From e5f1427916e24ac0f0f7a728706c6a069e180d2a Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Tue, 14 May 2024 16:44:08 +0530 Subject: [PATCH 045/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 685f2567..c33dcf85 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -63,7 +63,7 @@ jobs: if: ${{ false }} # disable for now - name: Restore Packages - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now run: dotnet restore src\LicenseClearingTool.sln - name: Build From 4b156b859a638541ea7cb67918a13ff6ee71c33f Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Tue, 14 May 2024 16:47:08 +0530 Subject: [PATCH 046/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index c33dcf85..03d26494 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -64,7 +64,7 @@ jobs: - name: Restore Packages #if: ${{ false }} # disable for now - run: dotnet restore src\LicenseClearingTool.sln + run: dotnet restore src/LicenseClearingTool.sln - name: Build if: ${{ false }} # disable for now From 08335da73c71f5bc91be64e2d7deec95c8bc7ef7 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 15 May 2024 09:34:30 +0530 Subject: [PATCH 047/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 03d26494..6046beda 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -67,8 +67,8 @@ jobs: run: dotnet restore src/LicenseClearingTool.sln - name: Build - if: ${{ false }} # disable for now - run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + #if: ${{ false }} # disable for now + run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln - name: Build the Docker image id: builddocker From c51cc3c5b72b935cfe1ad826aa499ba978b8fdc0 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 15 May 2024 09:47:45 +0530 Subject: [PATCH 048/120] Update compile.yml --- .github/workflows/compile.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 6046beda..cb786456 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -62,6 +62,9 @@ jobs: uses: microsoft/setup-msbuild@v1.3.1 if: ${{ false }} # disable for now + - name: Install MSBuild + uses: actions/setup-msbuild@v1 + - name: Restore Packages #if: ${{ false }} # disable for now run: dotnet restore src/LicenseClearingTool.sln From dd4845385bf0765cbfd0fef314d2f90b009f4b09 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Wed, 15 May 2024 15:48:12 +0530 Subject: [PATCH 049/120] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index cb786456..0cedb84e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -64,6 +64,7 @@ jobs: - name: Install MSBuild uses: actions/setup-msbuild@v1 + if: ${{ false }} # disable for now - name: Restore Packages #if: ${{ false }} # disable for now From a000e94273d37188d4da44dde575e45b0bd0e8fe Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 20 May 2024 15:14:02 +0530 Subject: [PATCH 050/120] Update compile.yml --- .github/workflows/compile.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 0cedb84e..60852855 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -57,13 +57,13 @@ jobs: $fileName = "dummy-v$($env:GitVersion_SemVer)" echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" Write-Host "Filename: '$fileName'" - - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now - name: Install MSBuild - uses: actions/setup-msbuild@v1 + uses: actions/setup-msbuild@v1.3.1 + if: ${{ false }} # disable for now + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.3.1 if: ${{ false }} # disable for now - name: Restore Packages From dbc12caae40db3690761a01a99060702bc235106 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 20 May 2024 15:16:10 +0530 Subject: [PATCH 051/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 60852855..97c5289b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -60,11 +60,11 @@ jobs: - name: Install MSBuild uses: actions/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now + # if: ${{ false }} # disable for now - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now - name: Restore Packages #if: ${{ false }} # disable for now From 6bea7f6abcdaa1eea1f55013561bb2ba882fc0d0 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 20 May 2024 15:18:16 +0530 Subject: [PATCH 052/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 97c5289b..60852855 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -60,11 +60,11 @@ jobs: - name: Install MSBuild uses: actions/setup-msbuild@v1.3.1 - # if: ${{ false }} # disable for now + if: ${{ false }} # disable for now - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now - name: Restore Packages #if: ${{ false }} # disable for now From 62a1d6a52866ebd522cc811638543b7da4ab069f Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 20 May 2024 18:00:00 +0530 Subject: [PATCH 053/120] Update compile.yml --- .github/workflows/compile.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 60852855..f734a616 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -58,14 +58,6 @@ jobs: echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" Write-Host "Filename: '$fileName'" - - name: Install MSBuild - uses: actions/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now - - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.3.1 - if: ${{ false }} # disable for now - - name: Restore Packages #if: ${{ false }} # disable for now run: dotnet restore src/LicenseClearingTool.sln From a25752df10a7a4453b2ec19fcd6a0b0b884a2490 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 20 May 2024 18:02:32 +0530 Subject: [PATCH 054/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f734a616..af6ae478 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -64,7 +64,7 @@ jobs: - name: Build #if: ${{ false }} # disable for now - run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln + run: dotnet -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln - name: Build the Docker image id: builddocker From d109898df95274f9cccf9a2a35c5600e6863a361 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 21 May 2024 12:27:43 +0530 Subject: [PATCH 055/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index af6ae478..18f13c61 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -64,7 +64,7 @@ jobs: - name: Build #if: ${{ false }} # disable for now - run: dotnet -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln + run: dotnet build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln - name: Build the Docker image id: builddocker From 60b32f6fc9fcd23b5619a4f7f238e23b582e1f13 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 21 May 2024 15:57:56 +0530 Subject: [PATCH 056/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 18f13c61..262e25dd 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -72,7 +72,7 @@ jobs: run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar - Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" + echo "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - name: Archive docker image #if: ${{ false }} # disable for now From 4f4007d019c40a1bba9550c3fcbe9656ab066916 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 11:29:14 +0530 Subject: [PATCH 057/120] Update compile.yml --- .github/workflows/compile.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 262e25dd..22e78b2c 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -84,7 +84,9 @@ jobs: - name: update appSettingsSW360IntegrationTest.json - run: ./Scripts/json_update.ps1 -JsonFile 'src\TestUtilities\appSettingsSW360IntegrationTest.json' + run: | + chmod +x ./Scripts/json_update.ps1 + ./Scripts/json_update.ps1 -JsonFile 'src\TestUtilities\appSettingsSW360IntegrationTest.json' env: SW360HOST: ${{ secrets.SW360HOST }} SW360APPPORT: ${{ secrets.SW360APPPORT }} From ec514753d4305d7ef7df41e64d2be2635cd264c1 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 11:35:04 +0530 Subject: [PATCH 058/120] Update compile.yml --- .github/workflows/compile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 22e78b2c..3d803b16 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -84,6 +84,7 @@ jobs: - name: update appSettingsSW360IntegrationTest.json + if: ${{ false }} # disable for now run: | chmod +x ./Scripts/json_update.ps1 ./Scripts/json_update.ps1 -JsonFile 'src\TestUtilities\appSettingsSW360IntegrationTest.json' @@ -98,6 +99,7 @@ jobs: SW360AUTHKEY: ${{ secrets.SW360AUTHTOKEN }} - name: update appsettingsUnitTest.json + if: ${{ false }} # disable for now run: ./Scripts/json_update_ut.ps1 -JsonFile 'src\UnitTestUtilities\appsettingsUnitTest.json' env: SW360HOST: ${{ secrets.SW360HOST }} From bc979e2bec0853e9605c52bbf9ce9485f833f123 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 11:54:17 +0530 Subject: [PATCH 059/120] Update compile.yml --- .github/workflows/compile.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 3d803b16..513427ad 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -118,20 +118,22 @@ jobs: path: | src/*.binlog *.binlog - - - name: Create zip - id: packageBuildResults + + - name: zip run: | - $sourceFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "*" - $outFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "continuous-clearing" - New-Item -ItemType Directory -Force -Path $outFolder - $fileName = "continuous-clearing-v6.2.0.zip" - Write-Host "Filename: '$fileName'" - Write-Host "sourceFolder: '$sourceFolder'" - Write-Host "Outfolder: '$outFolder'" - Write-Host "::set-output name=LicenseClearingTool::$($fileName)" - $outPath = Join-Path $outFolder $fileName - Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal + sourceFolder=$(realpath "$GITHUB_WORKSPACE/out" | sed 's/\/*$//') + outFolder="$GITHUB_WORKSPACE/out/continuous-clearing" + mkdir -p "$outFolder" + fileName="continuous-clearing-v6.2.0.zip" + echo "Filename: $fileName" + echo "sourceFolder: $sourceFolder" + echo "Outfolder: $outFolder" + echo "Creating zip file..." + cd "$sourceFolder" || exit 1 + zip -r "$GITHUB_WORKSPACE/out/abc/abc-v6.2.0.zip" . + cd "$(dirname "$GITHUB_WORKSPACE")" || exit 1 + mv "out/abc/abc-v6.2.0.zip" "$outFolder" + echo "::set-output name=LicenseClearingTool::$fileName" - name: Archive Build Output From 1a8a1431b43caf83bfc99b8242ae78f3f7f92648 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 12:04:50 +0530 Subject: [PATCH 060/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 513427ad..e717d01b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -130,9 +130,9 @@ jobs: echo "Outfolder: $outFolder" echo "Creating zip file..." cd "$sourceFolder" || exit 1 - zip -r "$GITHUB_WORKSPACE/out/abc/abc-v6.2.0.zip" . + zip -r "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" . cd "$(dirname "$GITHUB_WORKSPACE")" || exit 1 - mv "out/abc/abc-v6.2.0.zip" "$outFolder" + mv "out/continuous-clearing-v6.2.0.zip" "$outFolder" echo "::set-output name=LicenseClearingTool::$fileName" From 8ff5a4e6aa418f42244a2b3b07464b3c99373b9a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 12:17:00 +0530 Subject: [PATCH 061/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e717d01b..2eec2eb5 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -132,7 +132,7 @@ jobs: cd "$sourceFolder" || exit 1 zip -r "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" . cd "$(dirname "$GITHUB_WORKSPACE")" || exit 1 - mv "out/continuous-clearing-v6.2.0.zip" "$outFolder" + mv "continuous-clearing-v6.2.0.zip" "$outFolder" echo "::set-output name=LicenseClearingTool::$fileName" From f841c8870e26ab7d0f8a3e692a565c964a51a4d8 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 12:43:46 +0530 Subject: [PATCH 062/120] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 2eec2eb5..c7328254 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -132,6 +132,7 @@ jobs: cd "$sourceFolder" || exit 1 zip -r "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" . cd "$(dirname "$GITHUB_WORKSPACE")" || exit 1 + dir mv "continuous-clearing-v6.2.0.zip" "$outFolder" echo "::set-output name=LicenseClearingTool::$fileName" From 39115f98afd1ea9ef6958a9f811d0d86deb2cd2c Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 12:48:21 +0530 Subject: [PATCH 063/120] Update compile.yml --- .github/workflows/compile.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index c7328254..199a0355 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -131,9 +131,8 @@ jobs: echo "Creating zip file..." cd "$sourceFolder" || exit 1 zip -r "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" . - cd "$(dirname "$GITHUB_WORKSPACE")" || exit 1 - dir - mv "continuous-clearing-v6.2.0.zip" "$outFolder" + cd "$(dirname "$GITHUB_WORKSPACE")" + mv "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" "$outFolder" echo "::set-output name=LicenseClearingTool::$fileName" From b626acbbf1be20785b20965c644ca7ae60074027 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 14:58:01 +0530 Subject: [PATCH 064/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 199a0355..64c7ba0b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -146,8 +146,8 @@ jobs: - name: Create Nuget Packages id: createNupkg run: | - nuget pack CA.nuspec -Version 6.2.0 - Write-Host "::set-output name=nupkg-LicenseClearingTool::continuous-clearing.6.2.0.nupkg" + nuget pack CA.nuspec -Version 6.0.0 --output out/LicenseClearingTool + echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" - name: Archive NuGet Packages uses: actions/upload-artifact@v2 From 8ae18b57e1d904bd964a26190f3e5c383fe0975a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 15:09:03 +0530 Subject: [PATCH 065/120] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 64c7ba0b..83e0aee9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -146,6 +146,7 @@ jobs: - name: Create Nuget Packages id: createNupkg run: | + sudo apt-get install -y nuget nuget pack CA.nuspec -Version 6.0.0 --output out/LicenseClearingTool echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" From 2be451eed476256d77eadd9a3fbc23e5294d5c53 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 16:23:11 +0530 Subject: [PATCH 066/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 83e0aee9..e702dcaf 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -147,7 +147,7 @@ jobs: id: createNupkg run: | sudo apt-get install -y nuget - nuget pack CA.nuspec -Version 6.0.0 --output out/LicenseClearingTool + nuget pack CA.nuspec -Version 6.0.0 --output LicenseClearingTool echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" - name: Archive NuGet Packages From b8943a68c3c8a9103c94b7636e276bd563d1a0f0 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 16:54:58 +0530 Subject: [PATCH 067/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e702dcaf..82d58c1e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -147,7 +147,7 @@ jobs: id: createNupkg run: | sudo apt-get install -y nuget - nuget pack CA.nuspec -Version 6.0.0 --output LicenseClearingTool + nuget pack CA.nuspec -Version 6.0.0 --output $GITHUB_WORKSPACE/out/LicenseClearingTool echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" - name: Archive NuGet Packages From 5b010c7e394066a4f1ae9f9e64712faf4002b704 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Mon, 27 May 2024 17:02:08 +0530 Subject: [PATCH 068/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 82d58c1e..48ef6914 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -147,7 +147,7 @@ jobs: id: createNupkg run: | sudo apt-get install -y nuget - nuget pack CA.nuspec -Version 6.0.0 --output $GITHUB_WORKSPACE/out/LicenseClearingTool + nuget pack CA.nuspec -Version 6.0.0 echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" - name: Archive NuGet Packages From 027bd53fa125e9265b4a6863cc273a6a11c09c20 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:08:22 +0530 Subject: [PATCH 069/120] Update compile.yml --- .github/workflows/compile.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 48ef6914..b2a41059 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -64,7 +64,9 @@ jobs: - name: Build #if: ${{ false }} # disable for now - run: dotnet build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln + run: | + sudo apt-get install -y nuget + dotnet build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln - name: Build the Docker image id: builddocker @@ -146,7 +148,6 @@ jobs: - name: Create Nuget Packages id: createNupkg run: | - sudo apt-get install -y nuget nuget pack CA.nuspec -Version 6.0.0 echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" From fffed1c0c135f22a7d064e715c07a83e5f465ef9 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:13:49 +0530 Subject: [PATCH 070/120] Update compile.yml --- .github/workflows/compile.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b2a41059..454fec62 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -66,18 +66,18 @@ jobs: #if: ${{ false }} # disable for now run: | sudo apt-get install -y nuget - dotnet build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln + nuget build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln - name: Build the Docker image id: builddocker - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar echo "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - name: Archive docker image - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 with: name: docker-continuous-clearing @@ -165,6 +165,7 @@ jobs: docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" + - name: Archive docker image #if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 From 219ce74d06fcaa47b9fc432c241a13fa00590dfc Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:27:15 +0530 Subject: [PATCH 071/120] Update compile.yml --- .github/workflows/compile.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 454fec62..04f84734 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -47,6 +47,9 @@ jobs: run: | Set-PSRepository PSGallery -InstallationPolicy Trusted Install-Module SqlServer, PSScriptAnalyzer + + - name: Install MSBuild + uses: actions/setup-msbuild@v1 - name: get SemVer if: ${{ false }} # disable for now From 7a5838797409e219f0d27971d51b50dafc5d423d Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:30:12 +0530 Subject: [PATCH 072/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 04f84734..a385411f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -49,7 +49,7 @@ jobs: Install-Module SqlServer, PSScriptAnalyzer - name: Install MSBuild - uses: actions/setup-msbuild@v1 + uses: actions/setup-msbuild@v2 - name: get SemVer if: ${{ false }} # disable for now From 6676157c84b9d6846ae2bae0fa284d80500828a6 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:32:55 +0530 Subject: [PATCH 073/120] Update compile.yml --- .github/workflows/compile.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a385411f..380f61c3 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -47,9 +47,6 @@ jobs: run: | Set-PSRepository PSGallery -InstallationPolicy Trusted Install-Module SqlServer, PSScriptAnalyzer - - - name: Install MSBuild - uses: actions/setup-msbuild@v2 - name: get SemVer if: ${{ false }} # disable for now @@ -61,6 +58,12 @@ jobs: echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" Write-Host "Filename: '$fileName'" + - name: Restore NuGet packages + run: dotnet restore + + - name: Build + run: dotnet build + - name: Restore Packages #if: ${{ false }} # disable for now run: dotnet restore src/LicenseClearingTool.sln From 42dfda5b935a719a98f473c50d1e9cb51a23d477 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:34:18 +0530 Subject: [PATCH 074/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 380f61c3..4a79a5e1 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -59,10 +59,10 @@ jobs: Write-Host "Filename: '$fileName'" - name: Restore NuGet packages - run: dotnet restore + run: dotnet restore src/LicenseClearingTool.sln - name: Build - run: dotnet build + run: dotnet build src/LicenseClearingTool.sln - name: Restore Packages #if: ${{ false }} # disable for now From a64f7cddac116b1e420aa99cac6ff9f0f65252d4 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:36:46 +0530 Subject: [PATCH 075/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 4a79a5e1..8fea82fc 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -65,11 +65,11 @@ jobs: run: dotnet build src/LicenseClearingTool.sln - name: Restore Packages - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now run: dotnet restore src/LicenseClearingTool.sln - name: Build - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now run: | sudo apt-get install -y nuget nuget build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln From ab1e8cee83d1b01fbf29e7f561855a5108d3a980 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:47:26 +0530 Subject: [PATCH 076/120] Update compile.yml --- .github/workflows/compile.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8fea82fc..2c4b93b7 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -62,7 +62,10 @@ jobs: run: dotnet restore src/LicenseClearingTool.sln - name: Build - run: dotnet build src/LicenseClearingTool.sln + run: | + dotnet build src/LicenseClearingTool.sln + echo "Files in directory:" + ls $GITHUB_WORKSPACE/out/net6.0 - name: Restore Packages if: ${{ false }} # disable for now From 764a042a6ff2b2a005e968e6d7d508893a9445b4 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 17:55:54 +0530 Subject: [PATCH 077/120] Update compile.yml --- .github/workflows/compile.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 2c4b93b7..63341df2 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -59,7 +59,9 @@ jobs: Write-Host "Filename: '$fileName'" - name: Restore NuGet packages - run: dotnet restore src/LicenseClearingTool.sln + run: | + sudo apt-get install -y nuget + dotnet restore src/LicenseClearingTool.sln - name: Build run: | From da14d5f1237198e7cd3f345bdc6b609913c8de06 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 18:20:49 +0530 Subject: [PATCH 078/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 63341df2..614fbd21 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -67,7 +67,7 @@ jobs: run: | dotnet build src/LicenseClearingTool.sln echo "Files in directory:" - ls $GITHUB_WORKSPACE/out/net6.0 + ls -lrt $GITHUB_WORKSPACE/out/net6.0 - name: Restore Packages if: ${{ false }} # disable for now From d18d0a7f331de36877e298bcab5e6841f2ca92da Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 18:21:36 +0530 Subject: [PATCH 079/120] Update compile.yml From 495ab439a65500eb3afe906d8c682600e58a2fc3 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 18:51:02 +0530 Subject: [PATCH 080/120] Update compile.yml --- .github/workflows/compile.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 614fbd21..220bf409 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -63,6 +63,12 @@ jobs: sudo apt-get install -y nuget dotnet restore src/LicenseClearingTool.sln + - name: Build + uses: actions/setup-dotnet@2 + with: + dotnet-version: 6.0 + run: dotnet build src/LicenseClearingTool.sln + - name: Build run: | dotnet build src/LicenseClearingTool.sln From 17e56fbd85e35bda2f0b0b3de05a1e68bcb684dd Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Tue, 28 May 2024 18:53:15 +0530 Subject: [PATCH 081/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 220bf409..90f33c75 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -64,7 +64,7 @@ jobs: dotnet restore src/LicenseClearingTool.sln - name: Build - uses: actions/setup-dotnet@2 + uses: actions/setup-dotnet@latest with: dotnet-version: 6.0 run: dotnet build src/LicenseClearingTool.sln From 59abb5525b9d23333761d77becbc10ee32cb15fb Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 11:12:31 +0530 Subject: [PATCH 082/120] Update compile.yml --- .github/workflows/compile.yml | 136 ++++++++++++++-------------------- 1 file changed, 55 insertions(+), 81 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 90f33c75..936e5ded 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest defaults: run: @@ -24,30 +24,21 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - - name: Setup Version - if: ${{ false }} # disable for now + + - name: Setup Version uses: gittools/actions/gitversion/setup@v0.10.2 with: versionSpec: '5.12.0' env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - name: Determine Version - if: ${{ false }} # disable for now + - name: Determine Version uses: gittools/actions/gitversion/execute@v0.10.2 with: useConfigFile: true env: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - - uses: actions/checkout@v3 - - name: Install from PSGallery - shell: pwsh - run: | - Set-PSRepository PSGallery -InstallationPolicy Trusted - Install-Module SqlServer, PSScriptAnalyzer - - name: get SemVer if: ${{ false }} # disable for now id: gitversion @@ -57,56 +48,13 @@ jobs: $fileName = "dummy-v$($env:GitVersion_SemVer)" echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" Write-Host "Filename: '$fileName'" - - - name: Restore NuGet packages - run: | - sudo apt-get install -y nuget - dotnet restore src/LicenseClearingTool.sln - - - name: Build - uses: actions/setup-dotnet@latest - with: - dotnet-version: 6.0 - run: dotnet build src/LicenseClearingTool.sln - - - name: Build - run: | - dotnet build src/LicenseClearingTool.sln - echo "Files in directory:" - ls -lrt $GITHUB_WORKSPACE/out/net6.0 - - - name: Restore Packages - if: ${{ false }} # disable for now - run: dotnet restore src/LicenseClearingTool.sln - - - name: Build - if: ${{ false }} # disable for now - run: | - sudo apt-get install -y nuget - nuget build -c Release -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src/LicenseClearingTool.sln - - - name: Build the Docker image - id: builddocker - if: ${{ false }} # disable for now - run: | - docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 - docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar - echo "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - - name: Archive docker image - if: ${{ false }} # disable for now - uses: actions/upload-artifact@v2 - with: - name: docker-continuous-clearing - path: | - *.tar + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.3.1 - name: update appSettingsSW360IntegrationTest.json - if: ${{ false }} # disable for now - run: | - chmod +x ./Scripts/json_update.ps1 - ./Scripts/json_update.ps1 -JsonFile 'src\TestUtilities\appSettingsSW360IntegrationTest.json' + run: ./Scripts/json_update.ps1 -JsonFile 'src\TestUtilities\appSettingsSW360IntegrationTest.json' env: SW360HOST: ${{ secrets.SW360HOST }} SW360APPPORT: ${{ secrets.SW360APPPORT }} @@ -118,7 +66,6 @@ jobs: SW360AUTHKEY: ${{ secrets.SW360AUTHTOKEN }} - name: update appsettingsUnitTest.json - if: ${{ false }} # disable for now run: ./Scripts/json_update_ut.ps1 -JsonFile 'src\UnitTestUtilities\appsettingsUnitTest.json' env: SW360HOST: ${{ secrets.SW360HOST }} @@ -127,7 +74,11 @@ jobs: FOSSYAPPPORT: ${{ secrets.FOSSYAPPPORT }} JFROGURL: ${{ secrets.JFROGURL }} - + - name: Restore Packages + run: dotnet restore src\LicenseClearingTool.sln + + - name: Build + run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - name: Archive Build Log uses: actions/upload-artifact@v2 @@ -137,23 +88,46 @@ jobs: path: | src/*.binlog *.binlog - - - name: zip + + - name: Create zip + id: packageBuildResults + run: | + $sourceFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "*" + $outFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "continuous-clearing" + New-Item -ItemType Directory -Force -Path $outFolder + $fileName = "continuous-clearing-v6.2.0.zip" + Write-Host "Filename: '$fileName'" + Write-Host "sourceFolder: '$sourceFolder'" + Write-Host "Outfolder: '$outFolder'" + Write-Host "::set-output name=LicenseClearingTool::$($fileName)" + $outPath = Join-Path $outFolder $fileName + Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal + + - name: SW360 Instance refresh + #if: ${{ false }} # disable for now run: | - sourceFolder=$(realpath "$GITHUB_WORKSPACE/out" | sed 's/\/*$//') - outFolder="$GITHUB_WORKSPACE/out/continuous-clearing" - mkdir -p "$outFolder" - fileName="continuous-clearing-v6.2.0.zip" - echo "Filename: $fileName" - echo "sourceFolder: $sourceFolder" - echo "Outfolder: $outFolder" - echo "Creating zip file..." - cd "$sourceFolder" || exit 1 - zip -r "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" . - cd "$(dirname "$GITHUB_WORKSPACE")" - mv "$GITHUB_WORKSPACE/out/continuous-clearing-v6.2.0.zip" "$outFolder" - echo "::set-output name=LicenseClearingTool::$fileName" - + docker exec -dt sw360confctnr1 service postgresql stop + docker stop sw360confctnr1 + docker rm sw360confctnr1 + docker run --name sw360confctnr1 --memory=7g -t -d -p ${env:SW360APPPORT}:8080 -p 5990:5984 -p 5440:5432 ${env:DOCKERDEVARTIFACTORY}/energy-dev/software-clearing/sw360/sw360conf:latest + Start-Sleep -s 200 + env: + SW360APPPORT: ${{ secrets.SW360APPPORT }} + DOCKERDEVARTIFACTORY: ${{ secrets.DOCKERDEVARTIFACTORY }} + + - name: Test + #if: ${{ false }} # disable for now + run: | + $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj + Write-Host "**************************The test projects considered for execution: $TestProjects ******************************" + Write-Host "********************************************************************************************************************" + foreach ($Project in $TestProjects) + { + Write-Host $Project.DirectoryName + $TestProject = $Project.DirectoryName + Push-Location $Project.PSParentPath + dotnet test --no-build --configuration Release + } - name: Archive Build Output uses: actions/upload-artifact@v2 @@ -165,8 +139,8 @@ jobs: - name: Create Nuget Packages id: createNupkg run: | - nuget pack CA.nuspec -Version 6.0.0 - echo "::set-output name=nupkg-LicenseClearingTool::out/LicenseClearingTool/continuous-clearing.nuspec.6.0.0.nupkg" + nuget pack CA.nuspec -Version 6.2.0 + Write-Host "::set-output name=nupkg-LicenseClearingTool::continuous-clearing.6.2.0.nupkg" - name: Archive NuGet Packages uses: actions/upload-artifact@v2 @@ -176,13 +150,13 @@ jobs: *.nupkg - name: Build the Docker image - # id: builddocker + id: builddocker #if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - + - name: Archive docker image #if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 From 4fc90f880a447fedce23c35f788162870441fb70 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 11:19:16 +0530 Subject: [PATCH 083/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 936e5ded..bb5b524b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -104,7 +104,7 @@ jobs: Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal - name: SW360 Instance refresh - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now run: | docker exec -dt sw360confctnr1 service postgresql stop docker stop sw360confctnr1 @@ -167,7 +167,7 @@ jobs: release: if: github.ref == 'refs/heads/main' - runs-on: self-hosted + runs-on: windows-latest needs: build steps: From 834a665482ad801f23f1fe04ef2acb9f5f3f7ac5 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 11:36:36 +0530 Subject: [PATCH 084/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index bb5b524b..0623a80b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -116,7 +116,7 @@ jobs: DOCKERDEVARTIFACTORY: ${{ secrets.DOCKERDEVARTIFACTORY }} - name: Test - #if: ${{ false }} # disable for now + if: ${{ false }} # disable for now run: | $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj Write-Host "**************************The test projects considered for execution: $TestProjects ******************************" From 0b5dd41fc37321f364e4e124cab900db5baa0fc9 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 11:50:54 +0530 Subject: [PATCH 085/120] Update compile.yml --- .github/workflows/compile.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 0623a80b..94d6b8f8 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -149,14 +149,24 @@ jobs: path: | *.nupkg + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Build the Docker image - id: builddocker + # id: builddocker #if: ${{ false }} # disable for now run: | docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - + - name: Archive docker image #if: ${{ false }} # disable for now uses: actions/upload-artifact@v2 @@ -164,11 +174,13 @@ jobs: name: docker-continuous-clearing path: | *.tar + + release: if: github.ref == 'refs/heads/main' runs-on: windows-latest - needs: build + needs: [build, deploy] steps: - name: Download Build Output From c4031dd68808ffb3e7cf00b41405f21aca06274e Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 11:52:12 +0530 Subject: [PATCH 086/120] Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 94d6b8f8..7035545e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -151,6 +151,7 @@ jobs: deploy: runs-on: ubuntu-latest + needs: build steps: - name: Checkout From 21927e42adf470a50987d85593e6cf59a4b71fd9 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 12:00:46 +0530 Subject: [PATCH 087/120] Update compile.yml --- .github/workflows/compile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 7035545e..6cc80933 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -164,6 +164,8 @@ jobs: # id: builddocker #if: ${{ false }} # disable for now run: | + echo "Files in directory:" + ls -lrt $GITHUB_WORKSPACE/out/net6.0 docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" From e7574b7747290e7bb1fe0930ef04c90fdb852b9b Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 12:20:24 +0530 Subject: [PATCH 088/120] Update compile.yml --- .github/workflows/compile.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 6cc80933..1a752d50 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -79,6 +79,12 @@ jobs: - name: Build run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: buildoutput + path: /out/net6.0 - name: Archive Build Log uses: actions/upload-artifact@v2 @@ -158,6 +164,11 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + + - name: Download Build Output + uses: actions/download-artifact@v2 + with: + name: buildoutput - name: Build the Docker image From ead0e9ec56b2065f85157df433368fca5a5fd288 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 12:34:17 +0530 Subject: [PATCH 089/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 1a752d50..0c82703c 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -84,7 +84,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: buildoutput - path: /out/net6.0 + path: GITHUB_WORKSPACE/out/net6.0 - name: Archive Build Log uses: actions/upload-artifact@v2 From d9b02620fedcb1b2473f19498128b1a76e9b1500 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 12:53:26 +0530 Subject: [PATCH 090/120] Update compile.yml --- .github/workflows/compile.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 0c82703c..9a1d4bb8 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -78,7 +78,10 @@ jobs: run: dotnet restore src\LicenseClearingTool.sln - name: Build - run: msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + run: | + echo "Files in directory:" + ls -lrt $GITHUB_WORKSPACE/out/net6.0 + msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - name: Upload artifact uses: actions/upload-artifact@v2 From 40d3214165eb2d46eb83e2d73f627909a777c8fe Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 12:53:51 +0530 Subject: [PATCH 091/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9a1d4bb8..36dd86d7 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -79,9 +79,9 @@ jobs: - name: Build run: | + msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln echo "Files in directory:" ls -lrt $GITHUB_WORKSPACE/out/net6.0 - msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - name: Upload artifact uses: actions/upload-artifact@v2 From 2c61d49efba5658a6731f910292ffbbc7635cd65 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 14:39:03 +0530 Subject: [PATCH 092/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 36dd86d7..e4a74627 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -80,8 +80,8 @@ jobs: - name: Build run: | msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln - echo "Files in directory:" - ls -lrt $GITHUB_WORKSPACE/out/net6.0 + Write-Host "Files in directory:" + dir $GITHUB_WORKSPACE/out/net6.0 - name: Upload artifact uses: actions/upload-artifact@v2 From b800fd63fb8f26239dcd92dedff8617cf39f069d Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 14:49:31 +0530 Subject: [PATCH 093/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e4a74627..01cbba65 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -79,7 +79,7 @@ jobs: - name: Build run: | - msbuild -m -t:Rebuild -p:Configuration=Release -bl:continous-clearing.binlog -noconlog src\LicenseClearingTool.sln + dotnet build src\LicenseClearingTool.sln Write-Host "Files in directory:" dir $GITHUB_WORKSPACE/out/net6.0 From 843ade24806d7904a2313fc071d8930ed77a02b5 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 15:05:02 +0530 Subject: [PATCH 094/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 01cbba65..928c164e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -81,7 +81,7 @@ jobs: run: | dotnet build src\LicenseClearingTool.sln Write-Host "Files in directory:" - dir $GITHUB_WORKSPACE/out/net6.0 + dir $GITHUB_WORKSPACE - name: Upload artifact uses: actions/upload-artifact@v2 From 38c975e15d4d011106bcfebd4f62f99744484c02 Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 15:14:38 +0530 Subject: [PATCH 095/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 928c164e..818dae5a 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -81,13 +81,13 @@ jobs: run: | dotnet build src\LicenseClearingTool.sln Write-Host "Files in directory:" - dir $GITHUB_WORKSPACE + dir $GITHUB_WORKSPACE\out\net6.0 - name: Upload artifact uses: actions/upload-artifact@v2 with: name: buildoutput - path: GITHUB_WORKSPACE/out/net6.0 + path: GITHUB_WORKSPACE\out\net6.0 - name: Archive Build Log uses: actions/upload-artifact@v2 From 6beb5a4503c608ee6f2da64131f619cd0a4ec6b9 Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 15:22:12 +0530 Subject: [PATCH 096/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 818dae5a..d5b410cf 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -81,13 +81,13 @@ jobs: run: | dotnet build src\LicenseClearingTool.sln Write-Host "Files in directory:" - dir $GITHUB_WORKSPACE\out\net6.0 + dir $env:GITHUB_WORKSPACE\out\net6.0 - name: Upload artifact uses: actions/upload-artifact@v2 with: name: buildoutput - path: GITHUB_WORKSPACE\out\net6.0 + path: $env:GITHUB_WORKSPACE\out\net6.0 - name: Archive Build Log uses: actions/upload-artifact@v2 From a1cea15ab686e2f4d9cab92891d6d3d06ce74e10 Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 15:29:09 +0530 Subject: [PATCH 097/120] Update compile.yml --- .github/workflows/compile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d5b410cf..80144274 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -87,7 +87,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: buildoutput - path: $env:GITHUB_WORKSPACE\out\net6.0 + path: $env:GITHUB_WORKSPACE/out/net6.0 - name: Archive Build Log uses: actions/upload-artifact@v2 @@ -95,8 +95,8 @@ jobs: with: name: Compile_Solution_log path: | - src/*.binlog - *.binlog + $env:GITHUB_WORKSPACE/src/*.binlog + $env:GITHUB_WORKSPACE/*.binlog - name: Create zip id: packageBuildResults From ea8be51b8d55e62be52588bfac4cec85d4f32632 Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 15:38:52 +0530 Subject: [PATCH 098/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 80144274..ff0ba4e0 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -87,7 +87,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: buildoutput - path: $env:GITHUB_WORKSPACE/out/net6.0 + path: $env:GITHUB_WORKSPACE/out/net6.0/ - name: Archive Build Log uses: actions/upload-artifact@v2 From ad746e61bd5010beb271e7065ed07cc899fe9f3b Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 15:40:16 +0530 Subject: [PATCH 099/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index ff0ba4e0..b9e416b9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -87,7 +87,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: buildoutput - path: $env:GITHUB_WORKSPACE/out/net6.0/ + path: ${{ github.workspace }}/out/net6.0 - name: Archive Build Log uses: actions/upload-artifact@v2 From 6c9ef5e0e1fe54657d0d74f94361bee663eec467 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 15:49:27 +0530 Subject: [PATCH 100/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b9e416b9..b94121de 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -179,7 +179,7 @@ jobs: #if: ${{ false }} # disable for now run: | echo "Files in directory:" - ls -lrt $GITHUB_WORKSPACE/out/net6.0 + ls -lrt $GITHUB_WORKSPACE/buildoutput/out/net6.0 docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" From 26b3aabd83dea3f9d56ac454771de382eb4ce08a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:00:05 +0530 Subject: [PATCH 101/120] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 381cf8f9..061f613e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ RUN apt-get update && \ ENV PATH="/root/.local/bin:$PATH" # Copying files from host to current working directory -COPY /out/net6.0 /app/out +COPY /github/workspace/out/net6.0 /app/out From 93a9a0bb77aaf1a0cb6f74e8f3c241f7f7704880 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:09:07 +0530 Subject: [PATCH 102/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b94121de..8d6fdf90 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -179,7 +179,7 @@ jobs: #if: ${{ false }} # disable for now run: | echo "Files in directory:" - ls -lrt $GITHUB_WORKSPACE/buildoutput/out/net6.0 + ls $GITHUB_WORKSPACE/ docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" From 7686365209313212daae814ead3f22782af6abd8 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:12:57 +0530 Subject: [PATCH 103/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8d6fdf90..9c0d713c 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -179,7 +179,7 @@ jobs: #if: ${{ false }} # disable for now run: | echo "Files in directory:" - ls $GITHUB_WORKSPACE/ + ls $GITHUB_WORKSPACE/buildoutput docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" From e7e2cb8b1273a709ff7c2664296f4c913bee8598 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:24:54 +0530 Subject: [PATCH 104/120] Update compile.yml --- .github/workflows/compile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9c0d713c..d2607473 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -172,6 +172,7 @@ jobs: uses: actions/download-artifact@v2 with: name: buildoutput + path: ${{ github.workspace }}/buildoutput - name: Build the Docker image @@ -179,6 +180,7 @@ jobs: #if: ${{ false }} # disable for now run: | echo "Files in directory:" + ls $GITHUB_WORKSPACE/ ls $GITHUB_WORKSPACE/buildoutput docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar From 73e0e8e6f31a46443b8d1afac1cdb526468eff7d Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:34:34 +0530 Subject: [PATCH 105/120] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 061f613e..dfc849e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ RUN apt-get update && \ ENV PATH="/root/.local/bin:$PATH" # Copying files from host to current working directory -COPY /github/workspace/out/net6.0 /app/out +COPY /buildoutput/ /app/out From 370707386260f48f48b4b37004636b30180b3fe2 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:36:31 +0530 Subject: [PATCH 106/120] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dfc849e3..980b6732 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ RUN apt-get update && \ ENV PATH="/root/.local/bin:$PATH" # Copying files from host to current working directory -COPY /buildoutput/ /app/out +COPY /github/workspace/buildoutput/ /app/out From bf40f93895c1870b97e5a76771acf007642887c9 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:44:38 +0530 Subject: [PATCH 107/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index d2607473..2883ce2c 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -184,7 +184,7 @@ jobs: ls $GITHUB_WORKSPACE/buildoutput docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar - Write-Host "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" + echo "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" - name: Archive docker image #if: ${{ false }} # disable for now From 6721fb8ac0c8071dcec6d02fb600d17e19ebe18a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:53:44 +0530 Subject: [PATCH 108/120] Update compile.yml --- .github/workflows/compile.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 2883ce2c..86ac1c3f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -180,8 +180,6 @@ jobs: #if: ${{ false }} # disable for now run: | echo "Files in directory:" - ls $GITHUB_WORKSPACE/ - ls $GITHUB_WORKSPACE/buildoutput docker build . --file Dockerfile --tag ${{ github.repository }}:continuous-clearing-v6.2.0 docker save ${{ github.repository }}:continuous-clearing-v6.2.0 -o continuous-clearing-v6.2.0.tar echo "::set-output name=docker-LicenseClearingTool::continuous-clearing-v6.2.0.tar" From 7e4b435dda536f97e537f31e6191a91384ab679e Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 16:55:33 +0530 Subject: [PATCH 109/120] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 980b6732..dfc849e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,4 @@ RUN apt-get update && \ ENV PATH="/root/.local/bin:$PATH" # Copying files from host to current working directory -COPY /github/workspace/buildoutput/ /app/out +COPY /buildoutput/ /app/out From 3e8c072e8b178d8ec6333684421872e7f65d3d3d Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 17:05:28 +0530 Subject: [PATCH 110/120] Update compile.yml --- .github/workflows/compile.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 86ac1c3f..60e42850 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -137,13 +137,6 @@ jobs: Push-Location $Project.PSParentPath dotnet test --no-build --configuration Release } - - - name: Archive Build Output - uses: actions/upload-artifact@v2 - with: - name: continuous-clearing - path: | - out/continuous-clearing - name: Create Nuget Packages id: createNupkg @@ -195,7 +188,7 @@ jobs: release: - if: github.ref == 'refs/heads/main' + #if: github.ref == 'refs/heads/main' runs-on: windows-latest needs: [build, deploy] From 659ad7f8acb9919873bb2e8adafa129d94218e95 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 17:11:33 +0530 Subject: [PATCH 111/120] Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 60e42850..dccab5c8 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -245,7 +245,7 @@ jobs: asset_name: ${{ needs.build.outputs.nupkg-LicenseClearingTool }} asset_content_type: application/zip - - name: Upload Nupkg + - name: Upload Docker uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From c5a99d9e45a6d47b58400e271fe7bade0d08b303 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 17:13:15 +0530 Subject: [PATCH 112/120] Update compile.yml --- .github/workflows/compile.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index dccab5c8..0bac3336 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -96,7 +96,14 @@ jobs: name: Compile_Solution_log path: | $env:GITHUB_WORKSPACE/src/*.binlog - $env:GITHUB_WORKSPACE/*.binlog + $env:GITHUB_WORKSPACE/*.binlog + + - name: Archive Build Output + uses: actions/upload-artifact@v2 + with: + name: continuous-clearing + path: | + out/continuous-clearing - name: Create zip id: packageBuildResults From 0f65634200174554968b9243949ae8986e06fb39 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 17:20:11 +0530 Subject: [PATCH 113/120] Update compile.yml --- .github/workflows/compile.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 0bac3336..e5bdcc42 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -144,6 +144,14 @@ jobs: Push-Location $Project.PSParentPath dotnet test --no-build --configuration Release } + + + - name: Archive Build Output + uses: actions/upload-artifact@v2 + with: + name: continuous-clearing + path: | + out/continuous-clearing - name: Create Nuget Packages id: createNupkg From 6f5eeec9a817a86c143968a17cc5720fc0962a3a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Thu, 30 May 2024 17:32:05 +0530 Subject: [PATCH 114/120] Update compile.yml --- .github/workflows/compile.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e5bdcc42..af526b12 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -17,7 +17,6 @@ jobs: semver: ${{ steps.gitversion.outputs.semver }} LicenseClearingTool: ${{ steps.packageBuildResults.outputs.LicenseClearingTool }} nupkg-LicenseClearingTool: ${{ steps.createNupkg.outputs.nupkg-LicenseClearingTool }} - docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: - name: Checkout @@ -169,6 +168,9 @@ jobs: deploy: runs-on: ubuntu-latest needs: build + + outputs: + docker-LicenseClearingTool: ${{ steps.builddocker.outputs.docker-LicenseClearingTool }} steps: - name: Checkout @@ -184,7 +186,7 @@ jobs: - name: Build the Docker image - # id: builddocker + id: builddocker #if: ${{ false }} # disable for now run: | echo "Files in directory:" From 76058668ee693c768de949a2cb38ba3d31a108ce Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 17:53:29 +0530 Subject: [PATCH 115/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index af526b12..36d4c2c4 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -268,8 +268,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ needs.build.outputs.docker-LicenseClearingTool }} - asset_name: ${{ needs.build.outputs.docker-LicenseClearingTool }} + asset_path: ./${{ needs.deploy.outputs.docker-LicenseClearingTool }} + asset_name: ${{ needs.deploy.outputs.docker-LicenseClearingTool }} asset_content_type: application/zip - name: Upload ReadmeOSS_nupkg file From 8844c8dc6ae6d1a515629ee19c6ece3c63f20ce3 Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 18:34:43 +0530 Subject: [PATCH 116/120] Update compile.yml --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 36d4c2c4..697dbc83 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -268,7 +268,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ needs.deploy.outputs.docker-LicenseClearingTool }} + asset_path: ${{ github.workspace }}/${{ needs.deploy.outputs.docker-LicenseClearingTool }} asset_name: ${{ needs.deploy.outputs.docker-LicenseClearingTool }} asset_content_type: application/zip @@ -278,7 +278,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./ReadmeOSS_continuous-clearing_nupkg.html + asset_path: ${{ github.workspace }}/ReadmeOSS_continuous-clearing_nupkg.html asset_name: ReadmeOSS_continuous-clearing_nupkg.html asset_content_type: text/html From 4ee68cc3d3637098294c2364a6f153e1366e3f7b Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Thu, 30 May 2024 19:13:53 +0530 Subject: [PATCH 117/120] Update compile.yml --- .github/workflows/compile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 697dbc83..eccbd06b 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -268,7 +268,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/${{ needs.deploy.outputs.docker-LicenseClearingTool }} + asset_path: ./${{ needs.deploy.outputs.docker-LicenseClearingTool }} asset_name: ${{ needs.deploy.outputs.docker-LicenseClearingTool }} asset_content_type: application/zip @@ -278,7 +278,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/ReadmeOSS_continuous-clearing_nupkg.html + asset_path: ${{ github.workspace }}\ReadmeOSS_continuous-clearing_nupkg.html asset_name: ReadmeOSS_continuous-clearing_nupkg.html asset_content_type: text/html @@ -288,6 +288,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./ReadmeOSS_continuous-clearing_DockerImage.html + asset_path: ${{ github.workspace }}\ReadmeOSS_continuous-clearing_DockerImage.html asset_name: ReadmeOSS_continuous-clearing_DockerImage.html asset_content_type: text/html From 8e721218679ad7b3b16b41a74d0d14f1747f8325 Mon Sep 17 00:00:00 2001 From: MadanReddyK <125262006+MadanReddyK@users.noreply.github.com> Date: Fri, 31 May 2024 05:47:52 +0530 Subject: [PATCH 118/120] Update compile.yml --- .github/workflows/compile.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index eccbd06b..a087c3a6 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -210,6 +210,11 @@ jobs: needs: [build, deploy] steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Download Build Output uses: actions/download-artifact@v2 with: From 8563d1a1a3aa278def4f0750318af1fa44a2ec7a Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Fri, 31 May 2024 09:54:22 +0530 Subject: [PATCH 119/120] Update compile.yml --- .github/workflows/compile.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index a087c3a6..0e166535 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -4,7 +4,6 @@ on: push: pull_request: - jobs: build: From 6d8170fc6b1dac6da044c39143754362b2da5bf1 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Fri, 31 May 2024 10:27:52 +0530 Subject: [PATCH 120/120] Update compile.yml --- .github/workflows/compile.yml | 39 +++++++---------------------------- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 0e166535..8aeb993d 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -38,7 +38,7 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE - name: get SemVer - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now id: gitversion run: | echo "SemVer: v$($env:GitVersion_SemVer)" @@ -49,19 +49,6 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.3.1 - - - - name: update appSettingsSW360IntegrationTest.json - run: ./Scripts/json_update.ps1 -JsonFile 'src\TestUtilities\appSettingsSW360IntegrationTest.json' - env: - SW360HOST: ${{ secrets.SW360HOST }} - SW360APPPORT: ${{ secrets.SW360APPPORT }} - FOSSYHOST: ${{ secrets.FOSSYHOST }} - FOSSYAPPPORT: ${{ secrets.FOSSYAPPPORT }} - USEREMAIL: ${{ secrets.USEREMAIL }} - ARTIFACTORYAPIKEY: ${{ secrets.ARTIFACTORYAPIKEY }} - JFROGURL: ${{ secrets.JFROGURL }} - SW360AUTHKEY: ${{ secrets.SW360AUTHTOKEN }} - name: update appsettingsUnitTest.json run: ./Scripts/json_update_ut.ps1 -JsonFile 'src\UnitTestUtilities\appsettingsUnitTest.json' @@ -116,23 +103,11 @@ jobs: Write-Host "::set-output name=LicenseClearingTool::$($fileName)" $outPath = Join-Path $outFolder $fileName Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal - - - name: SW360 Instance refresh - if: ${{ false }} # disable for now - run: | - docker exec -dt sw360confctnr1 service postgresql stop - docker stop sw360confctnr1 - docker rm sw360confctnr1 - docker run --name sw360confctnr1 --memory=7g -t -d -p ${env:SW360APPPORT}:8080 -p 5990:5984 -p 5440:5432 ${env:DOCKERDEVARTIFACTORY}/energy-dev/software-clearing/sw360/sw360conf:latest - Start-Sleep -s 200 - env: - SW360APPPORT: ${{ secrets.SW360APPPORT }} - DOCKERDEVARTIFACTORY: ${{ secrets.DOCKERDEVARTIFACTORY }} - name: Test - if: ${{ false }} # disable for now + #if: ${{ false }} # disable for now run: | - $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj + $TestProjects = Get-ChildItem -Path *test*.csproj -Recurse -exclude TestUtilities.csproj,UnitTestUtilities.csproj,SW360IntegrationTest.csproj Write-Host "**************************The test projects considered for execution: $TestProjects ******************************" Write-Host "********************************************************************************************************************" foreach ($Project in $TestProjects) @@ -164,7 +139,7 @@ jobs: path: | *.nupkg - deploy: + build-docker: runs-on: ubuntu-latest needs: build @@ -206,7 +181,7 @@ jobs: release: #if: github.ref == 'refs/heads/main' runs-on: windows-latest - needs: [build, deploy] + needs: [build, build-docker] steps: - name: Checkout @@ -272,8 +247,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ needs.deploy.outputs.docker-LicenseClearingTool }} - asset_name: ${{ needs.deploy.outputs.docker-LicenseClearingTool }} + asset_path: ./${{ needs.build-docker.outputs.docker-LicenseClearingTool }} + asset_name: ${{ needs.build-docker.outputs.docker-LicenseClearingTool }} asset_content_type: application/zip - name: Upload ReadmeOSS_nupkg file