I'm able to sort by source but, unable to sort by branch, it shows only few branches for all sources.
I used it like
Source:[source_name] OR Branch:[branch_name]
in the history tab.
can anyone tell me how to sort based on the branch?
I think that is normal, I have the same thing on my side.
2 branches: Master and Open-source. However when I filter on the branch, even master I have nothing:
Why?? Because I have any trigger on the master or open-source branch. My trigger is on any branch.
Thus the build branch param is not set and thus you can search/filter on it. On others project, when I have a filter per branch, the history is correct and I can filter on the branch name.
An alternative is to use the gcloud command and the filter param like this
gcloud builds list --filter="substitutions.BRANCH_NAME=<YourBranchName>"
More detail on the filter capabilities and expression