TfsExtensions icon indicating copy to clipboard operation
TfsExtensions copied to clipboard

Trigger release pipelines?

Open virmitio opened this issue 2 years ago • 5 comments

It's not readily apparent to me from the documentation, can TriggerBuild task be used to trigger and wait on a release pipeline or only build pipelines? Trying to sequentially chain a pile of existing build and release pipelines in a reliable fashion.

virmitio avatar Jul 21 '22 08:07 virmitio

Hi @virmitio

it is not possible to trigger release pipelines with this task.

huserben avatar Jul 21 '22 11:07 huserben

Is this a conceivable feature for the future? I'd be very interested to see it, or an alternative task with behavior similar to TriggerBuild that triggers and waits upon a release.

Trying to work around my current problem, if I run a TriggerBuild task and pass waitForQueuedBuildsToFinish as true, is there a variable being set in the calling pipeline that will give me the build/run ID of the build I just triggered?

virmitio avatar Jul 22 '22 15:07 virmitio

Found what I was looking for in the docs, as TriggeredBuildIds

In some future revision, it would be handy to include in the docs a code block with a YAML listing a complete set of possible input parameters and a concise list of outputs/variable produced. Or to have this kind of complete canonical example in a file of the repo, with a link to it from the docs.

Leaving this issue open for now, as the first question of my previous comment is still relevant to the original issue topic.

virmitio avatar Jul 22 '22 18:07 virmitio

Hi @virmitio

sorry for the late reply, somehow I've missed the notification emails.

Yes I'll try to provide a more extensive yaml example next time I'll publish a new version. I'd update this issue once I have something ready.

Thanks for raising this.

huserben avatar Jul 29 '22 14:07 huserben

I've finally published a new version and now included a link to the following file in the docs: https://github.com/huserben/TfsExtensions/blob/master/BuildTasks/yaml_examples.md

There are yaml examples for the 3 different tasks.

Do you see anything missing or can I close this issue now?

huserben avatar Nov 12 '22 10:11 huserben

Closed due to inactivity

huserben avatar Apr 09 '23 14:04 huserben