2024-04-29 08:30:04 +00:00
|
|
|
parameters:
|
|
|
|
- name: is1ESPipeline
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
|
|
|
|
- name: args
|
|
|
|
type: object
|
|
|
|
default: {}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- ${{ if ne(parameters.is1ESPipeline, true) }}:
|
|
|
|
- 'eng/common/templates-official cannot be referenced from a non-1ES managed template': error
|
|
|
|
- task: 1ES.PublishPipelineArtifact@1
|
|
|
|
displayName: ${{ coalesce(parameters.args.displayName, 'Publish to Build Artifact') }}
|
|
|
|
${{ if parameters.args.condition }}:
|
|
|
|
condition: ${{ parameters.args.condition }}
|
|
|
|
${{ else }}:
|
|
|
|
condition: succeeded()
|
|
|
|
${{ if parameters.args.continueOnError }}:
|
|
|
|
continueOnError: ${{ parameters.args.continueOnError }}
|
|
|
|
inputs:
|
|
|
|
targetPath: ${{ parameters.args.targetPath }}
|
|
|
|
${{ if parameters.args.artifactName }}:
|
|
|
|
artifactName: ${{ parameters.args.artifactName }}
|
|
|
|
${{ if parameters.args.properties }}:
|
2024-05-03 16:09:36 +00:00
|
|
|
properties: ${{ parameters.args.properties }}
|