Open anilsamuel opened 2 years ago
Dude, what you are asking for is not an Azure Devops issue, it is rather groundbreaking feature request.
AFAIK template expansion (notation ${{ }} ) works only with parameters and preassigned variables, i.e. you cannot achieve template expansion upon runtime values. You may of course start another pipeline, passing parameter obtained in runtime, but I suppose it is not what you ultimately wanted to achieve.
Dude, what you are asking for is not an Azure Devops issue, it is rather groundbreaking feature request.
AFAIK template expansion (notation ${{ }} ) works only with parameters and preassigned variables, i.e. you cannot achieve template expansion upon runtime values. You may of course start another pipeline, passing parameter obtained in runtime, but I suppose it is not what you ultimately wanted to achieve.
Could you please provide snippet that use another pipeline to achieve this ? as i do not understand how.
You can have a pipeline that calculate something and trigger a new one from the parent with this pws command 👍 # Run the pipeline $pipelineQueue = Invoke-Expression "az pipelines run --commit-id $($using:commitId) --id $($using:pipelineId) --branch $($using:branch) --parameters $($processedParams) | ConvertFrom-Json" $buildID = $pipelineQueue.id
Also parameters can be problematic if you plan to use complex object.
Why is this not working, i got similar doing like this
suppose you have this steps
then you should supply it in the parameters as object too
so when calling or trigger the pipeline, you can still use the yaml by extending it
@anilsamuel thats how i did it by calling the parameter object and set on the script , here is also another from blog https://igeorgiev.eu/devops/azure-pipelines-use-each-loop/
Hooping to do something similar but looking for a way to set the list value of parameters.StackNames using command below prior to Delete ${{ stack }}
aws cloudformation describe-stacks --query "[].StackName)"