Azure-devops-docs: What specificBuildWithTriggering does?

Created on 13 Jul 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Can you please explain what the specificBuildWithTriggering exactly does?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 devops-cictech devopprod doc-bug

All 6 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

letmaik picture letmaik  Â·  3Comments

sevaa picture sevaa  Â·  3Comments

dtamai picture dtamai  Â·  3Comments

Naphier picture Naphier  Â·  3Comments

dannyvv picture dannyvv  Â·  3Comments