Can you please explain what the specificBuildWithTriggering exactly does?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Can you explain more about the scenario here.
It's unclear what this option does. Can you give an example? Thank you.
It's unclear what this option does. Can you give an example? Thank you.
that's the point, more explanation is needed about this option
It's mentioned in https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-pipeline-artifact?view=azure-devops
I'm also curious what it does. What's the definition of appropriate?
I have a build (BUILD-B) that is triggered by build (BUILD-A).
I am using following parameters with :
task: DownloadBuildArtifacts@0
inputs:
buildType: 'specific'
project: 'MyProject'
pipeline: 'BUILD-A'
specificBuildWithTriggering: true
allowPartiallySucceededBuilds: true
artifactName: 'coverage'
itemPattern: 'coverage/lcov.info'
downloadPath: 'src/test'
Do I need to add param branchName: $(variables['Build.SourceBranch']) as well ?
Or, will specificBuildWithTriggering make sure the the artifacts are downloaded from correct build id ?
Yes, Once you set specificBuildwithTriggering set as true, it will download from the triggering build and you don't have to set branch.
However, if you are looking for ways to auto trigger from other build pipeline and download the artifacts, we came up with a first class pipeline resource with triggers: https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#pipeline-resource
This would let you link another build pipeline, enable triggers, download artifacts and provide e2e traceability.