fluentui-react-native/.ado/templates/e2e-publish-artifacts.yml

30 строки
1.2 KiB
YAML

parameters:
platform:
applicationType:
buildArtifacts:
steps:
# Copy Appium reports to FluentTesterDump
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.SourcesDirectory)/apps/${{parameters.platform}}/reports/
targetFolder: $(Build.StagingDirectory)/E2E_${{parameters.applicationType}}_Dump
displayName: "Copy Reports"
condition: and (succeededOrFailed(), eq(${{parameters.buildArtifacts}}, 'success'))
# Copy errorShots to FluentTesterDump
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.SourcesDirectory)/apps/${{parameters.platform}}/errorShots/
targetFolder: $(Build.StagingDirectory)/E2E_${{parameters.applicationType}}_Dump
displayName: "Copy tree dump screenshots"
condition: and (succeededOrFailed(), eq(${{parameters.buildArtifacts}}, 'success'))
# Publish FluentTesterDump
- task: PublishBuildArtifacts@1
inputs:
artifactName: E2E_${{parameters.applicationType}}_Dump
pathtoPublish: $(Build.StagingDirectory)/E2E_${{parameters.applicationType}}_Dump
displayName: "Publish Artifact:E2E_${{parameters.applicationType}}_Dump"
condition: and (succeededOrFailed(), eq(${{parameters.buildArtifacts}}, 'success'))