Pass parameters into a pipeline #581
Replies: 2 comments
-
There's nothing like this currently but there's no reason you can't create a helper method for that yourself!
The same object/instance can't be invoked multiple times - But if you create multiple instances, they can be each invoked concurrently. I don't know how this would perform because it depends what your pipeline is doing, and how well spec'd your machine is - So that'll be trial and error on your part I guess.
Yes - I don't see anything wrong with your method. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply - I now have it working and it seems to run concurrently fairly nicely - the only issue I am seeing is I get the following warning: Not sure if this the right way but setting the pipeline LogLevel to "None" appears to make this error disappear and it's happy to run concurrent builds |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am really interested in this library, looking for some guidance on running mutliple pipelines with run specific parameters - my use case requires the same pipeline to run multiple times based on specific run parameters (e.q. from build queue to produce a pipeline run per customer)
so the pipeline steps are the same but passing in build parameters to make the run specific to the customer based on their build Params (these params are accessed in the modules).
At the moment I am created a new pipeline each time via a createPipeLine method:
then execute each create pipeline
await pipeline.ExecutePipelineAsync();
Would this be the best way? (Not yet tried to see happens if I try to execute more than one concurrently yet and whether there is any issue having multiple instances of the pipeline host? (also can you confirm if multiple instances of the same pipeline would be ok?)
I wondered if there could be a way like having a version of ExecutePipeline that allows a parameters class to be passed in but the underlying pipeline is the same each time.
something like:
await pipeline.ExecutePipelineAsync(buildParameters)
Beta Was this translation helpful? Give feedback.
All reactions