You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In doing so it discards templateParameters (along with previewRun, stagesToSkip, and yamlOverride), but my concern is with templateParameters.
If I'm tracing things correctly, the problem is in the class RunPipelineParameters in azure-devops/azure/devops/v6_0/pipelines/models.py which only maps resources and variables:
I was trying to pass the variables to the run_pipeline function to trigger the pipeline running with specific variables, but failed, any idea for this?
I'd try the first and see if it works, if not try the second. All the builds I'm playing with currently require templateParameters, so I can't do a quick test. May be able to take some time and set up a test build this weekend and see which way works.
Looks like this was fixed with PR #355 quite some time ago. I'll try it tomorrow and verify that it now supports both template params and variables correctly and post an example and close this issue.
Activity
nallace commentedon May 28, 2020
I was trying to pass the variables to the run_pipeline function to trigger the pipeline running with specific variables, but failed, any idea for this?
kenhia commentedon May 28, 2020
If I'm reading the what the package is doing correctly, you probably want something more like:
But, having dealt with queuing builds/pipelines, you may need the run_params to look like:
I'd try the first and see if it works, if not try the second. All the builds I'm playing with currently require templateParameters, so I can't do a quick test. May be able to take some time and set up a test build this weekend and see which way works.
davidljuba15031979 commentedon Nov 1, 2020
Тhis works properly for API Version 6.0-preview.1:
Request body
Variable
nadworny commentedon Oct 21, 2021
I think this can be closed as templateParameters are now supported, i.e.
using
azure-devops = "^6.0.0-beta.4"kenhia commentedon Dec 5, 2021
Looks like this was fixed with PR #355 quite some time ago. I'll try it tomorrow and verify that it now supports both template params and variables correctly and post an example and close this issue.
Hanjinchao commentedon Feb 21, 2023
is there way to set branch??
cant find document of those parm setting
foremny commentedon Jul 21, 2023
a way to checkout a specific commit is: