diff --git a/eng/common/pipelines/templates/jobs/generate-job-matrix.yml b/eng/common/pipelines/templates/jobs/generate-job-matrix.yml index 67ee92a93839..a7459e6b5db5 100644 --- a/eng/common/pipelines/templates/jobs/generate-job-matrix.yml +++ b/eng/common/pipelines/templates/jobs/generate-job-matrix.yml @@ -66,7 +66,7 @@ jobs: value: $[ coalesce(variables.jobMatrixFilter, '.*') ] pool: name: ${{ parameters.Pool }} - vmImage: ${{ parameters.OsVmImage }} + image: ${{ parameters.OsVmImage }} os: ${{ parameters.Os }} ${{ if parameters.DependsOn }}: dependsOn: ${{ parameters.DependsOn }} diff --git a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml index a8ebae6d738b..7648a34165f7 100644 --- a/eng/common/pipelines/templates/steps/publish-1es-artifact.yml +++ b/eng/common/pipelines/templates/steps/publish-1es-artifact.yml @@ -20,7 +20,7 @@ steps: } else { Write-Host "##vso[task.setvariable variable=PublishArtifactName;]${{ parameters.ArtifactName }}" } - condition: and(failed(), ${{ parameters.CustomCondition }}) + condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }}) displayName: Set Artifact Name $(Agent.JobStatus) - task: 1ES.PublishPipelineArtifact@1