huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
44 stars 22 forks source link

Trigger build with specific Source ID #119

Closed petermisovic closed 4 years ago

petermisovic commented 4 years ago

Hello, is there any chance ti trigger build with specific Source ID?

huserben commented 4 years ago

Hi @petermisovic

I'm sorry but currently it's not possible to manually specify the source version, only to either queue with the default sources of the same one as the build is being run with.

It could be added but is currently not on the roadmap, so I can't make any promises about if or when it would happen.

petermisovic commented 4 years ago

Hello, thanks for update. It would be great update for pipelines. I will stay in track if you would change your mind :) I made it for myself via Powershell script for now

huserben commented 4 years ago

Hi @petermisovic

I published a new version of the task that now supports to select a custom source version: grafik

Could you let me know whether this fulfills your needs and wheter it works as expected or not?

dazfez commented 4 years ago

Hi @petermisovic

I published a new version of the task that now supports to select a custom source version: grafik

Could you let me know whether this fulfills your needs and wheter it works as expected or not?

Hi @huserben ,

I'm also interested in this fix. Should that work with a pipeline variable?

image

I've tried it but couldn't get that to work. If I use the full SHA it works fine

Thanks,

Darren.

huserben commented 4 years ago

Hi @dazfez

It should work with a variable, however according to your screenshot you apply the "Powershell" logic of retrieving this variable :-).

So assuming you have defined a variable named TargetCommitVersion then you should put $(TargetCommitVersion) as value.

Can you try this out and let me know whether it works with that change?

dazfez commented 4 years ago

Hi @huserben,

Yes, sorry my mistake. That works fine using $(TargetCommitVersion) . Thanks again for adding this enhancement to the utility.

Regards,

Darren

huserben commented 4 years ago

Hi @dazfez

Thanks for the verification. I'll close the issue then, if you or @petermisovic have problems or requests feel free to open a new issue.

petermisovic commented 4 years ago

Great, thank you!

petermisovic commented 4 years ago

Hi @petermisovic

I published a new version of the task that now supports to select a custom source version: grafik

Could you let me know whether this fulfills your needs and wheter it works as expected or not?

I will try and let you know as soon as possible. I have to get rights to install extension in our server.