This commit is contained in:
MilenaHristova 2023-03-03 12:17:00 +01:00
parent 522c032c92
commit 65f50bbad2
2 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ pool:
demands: ImageOverride -equals 1es-ubuntu-2004 demands: ImageOverride -equals 1es-ubuntu-2004
parameters: parameters:
- name: dotnetDotnetBuild - name: dotnetDotnetRunId
displayName: 'Specific dotnet-dotnet run ID' displayName: 'Specific dotnet-dotnet run ID'
type: string type: string
default: ' ' default: ' '
@ -25,32 +25,32 @@ jobs:
buildName: CentOSStream8_Offline buildName: CentOSStream8_Offline
targetRid: centos.8-x64 targetRid: centos.8-x64
architecture: x64 architecture: x64
dotnetDotnetBuild: ${{ parameters.dotnetDotnetBuild }} dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }}
- template: templates/jobs/sdk-diff-tests.yml - template: templates/jobs/sdk-diff-tests.yml
parameters: parameters:
buildName: CentOSStream9_Offline buildName: CentOSStream9_Offline
targetRid: centos.9-x64 targetRid: centos.9-x64
architecture: x64 architecture: x64
dotnetDotnetBuild: ${{ parameters.dotnetDotnetBuild }} dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }}
- template: templates/jobs/sdk-diff-tests.yml - template: templates/jobs/sdk-diff-tests.yml
parameters: parameters:
buildName: Fedora36_Offline buildName: Fedora36_Offline
targetRid: fedora.36-x64 targetRid: fedora.36-x64
architecture: x64 architecture: x64
dotnetDotnetBuild: ${{ parameters.dotnetDotnetBuild }} dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }}
- template: templates/jobs/sdk-diff-tests.yml - template: templates/jobs/sdk-diff-tests.yml
parameters: parameters:
buildName: Ubuntu2004_Offline buildName: Ubuntu2004_Offline
targetRid: ubuntu.2004-x64 targetRid: ubuntu.2004-x64
architecture: x64 architecture: x64
dotnetDotnetBuild: ${{ parameters.dotnetDotnetBuild }} dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }}
- template: templates/jobs/sdk-diff-tests.yml - template: templates/jobs/sdk-diff-tests.yml
parameters: parameters:
buildName: Debian11_Offline buildName: Debian11_Offline
targetRid: debian.11-arm64 targetRid: debian.11-arm64
architecture: arm64 architecture: arm64
dotnetDotnetBuild: ${{ parameters.dotnetDotnetBuild }} dotnetDotnetRunId: ${{ parameters.dotnetDotnetRunId }}

View file

@ -8,7 +8,7 @@ parameters:
- name: architecture - name: architecture
type: string type: string
- name: dotnetDotnetBuild - name: dotnetDotnetRunId
type: string type: string
jobs: jobs:
@ -21,7 +21,7 @@ jobs:
- template: ../variables/pipelines.yml - template: ../variables/pipelines.yml
steps: steps:
- script: | - script: |
vmr_build='${{ replace(parameters.dotnetDotnetBuild, ' ', '') }}' vmr_build='${{ replace(parameters.dotnetDotnetRunId, ' ', '') }}'
if [[ -z "$vmr_build" ]]; then if [[ -z "$vmr_build" ]]; then
vmr_build=$(az pipelines runs list --organization '$(AZDO_ORG)' --project '$(AZDO_PROJECT)' --pipeline-ids '$(DOTNET_DOTNET_CI_PIPELINE_ID)' --status completed --top 1 --query "[].id" --output tsv) vmr_build=$(az pipelines runs list --organization '$(AZDO_ORG)' --project '$(AZDO_PROJECT)' --pipeline-ids '$(DOTNET_DOTNET_CI_PIPELINE_ID)' --status completed --top 1 --query "[].id" --output tsv)