How to filter deployments view based on inputs provided in pipeline execution.
Is it possible to filter pipelines in the deployments view based on the inputs received?
I would like to be able to view or filter pipeline executions by inputs.
I currently have many pipelines that use inputs to vary the pipeline execution (rather than have many pipelines with hardcoded inputs). However, it is challenging to find executions that go by a particular input. For instance, if I have an input like ProjectName, and there are 1500 variations of that input (1500 ProjectName values), it is currently impossible to find the pipeline execution for a specific value of ProjectName. Is there a better way to create/organize pipelines so that I can find the executions for a specific input value? I would prefer not to create 1500 pipelines just to be able to search and find executions for specific input values.
As part of this article, we will answer how to achieve this usecase.
Currently, we do not provide native support to query for unknown fields. However, If you can add the tags to the pipeline, it can be achieved. like tag could be <+project.name> and we support query by tags.
- You can add used expressions in your pipeline in pipeline tags.
For example, here I am adding a variable test2 which is runtime input:
Next step, I am copying the full qualified path of this variable by mouseover as shown below :
Next step, Now we need to add this expression as a tag to our pipeline as shown below:
- Then you can filter or search in the deployment dashboard based on the input you have provided to see the execution which ran with only that execution.
Let’s provide a input to test2 variable as 321 and execute a pipeline:
Now, let’s go to the project dashboard, and in the search bar, let’s search with the input value provided 321. We will see the execution which was run with this input:
So this is how you can filter deployments view based on inputs provided in pipeline execution.