freeipa/ipatests/azure/templates/publish-build.yml
Stanislav Levin 908e8cf338 Azure: Template docs build
The distros may use different sphinx builder paths,
for example, by exporting of SPHINXBUILD env var.

Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2021-03-30 09:58:42 +02:00

21 lines
755 B
YAML

parameters:
artifactName: ''
targetPath: ''
displayName: ''
steps:
- script: |
set -e
ARTIFACT_NAME="${{ parameters.artifactName }}-$(Build.BuildId)-$(System.StageAttempt)-$(System.PhaseAttempt)-$(Agent.OS)-$(Agent.OSArchitecture)"
echo "Artifact name: '${ARTIFACT_NAME}'"
echo "##vso[task.setvariable variable=${{ parameters.artifactName }};isOutput=true]${ARTIFACT_NAME}"
name: artifacts_${{ parameters.artifactName }}
displayName: Generate unique artifact name for ${{ parameters.artifactName }}
- task: PublishPipelineArtifact@1
inputs:
artifactName: $(artifacts_${{ parameters.artifactName }}.${{ parameters.artifactName }})
targetPath: ${{ parameters.targetPath }}
displayName: ${{ parameters.displayName }}