Branch filtering on Workflow level
complete
K
Kyle Fowler
we have different workflows for different flavors of our applications. It would be great if we could put branch filters at the workflow level so that we dont have to specify filters at the job level, where the workflow starts only to bail out at the first job. Would save a workspace setup and checkout for the no-op.
CCI-I-258
Salil Subbakrishna
complete
Hi everyone, we just released a new logical operator, "matches" (https://circleci.com/docs/2.0/configuration-reference/#using-when-in-workflows) that returns true/false if a value (say the pipeline value for the branch or tag) matches a given regex. This can be used in the "when" at the workflow level to exclude workflows if the branch/tag does not match a pattern.
J
James Sumners
Salil Subbakrishna: this is fantastic. This feature is definitely reducing a lot of redundancy in my workflows that was being used to limit workflows to specific branches.
V
Vinny Thanh
Hi everyone. I did want to mention: although we won't be prioritizing this feature yet, if your workflows have just one or a couple of jobs that are the entrypoint for your workflow, it should be sufficient to only filter those job(s).
If the first job(s) don't run, then by extension the downstream dependent jobs won't run either. This should help some of you reduce your config by several lines since the filter is only needed on the entrypoints, although we agree that having a workflow-level filter is more readable.
Tomás Flores Alvear
Went through the comments and they date back to 2018. Is this ever going to be supported? Going job per job is not the best solution and is very error prone. There are workarounds, but it would be great to have a "native" solution.
Liya Ai
Tomás Flores Alvear: Hi Tomas! Thanks for your feedback. At this time, we've reviewed this idea several times with our Product team but it is has not yet been prioritized. If you filter by "under review" on this board, those are the focus areas our team is currently looking into right now.
X
Xakraz
:+1:
G
Guillaume
Late to the party, but I fully support this request
J
James Nail
Liya Ai,Is there a single resource I can follow to discover new features as you release them (perhaps like a high-level changelog or something)? I generally work on my circle configs sporadically (sometimes a few months between work), and I'd like to be able to quickly catch up on newly added features/capabilities, so I can take advantage of them.
Liya Ai
James Nail: Hi James! Sorry for missing your comment - you can follow our official changelog here: https://circleci.com/changelog/. I'm also working on getting a roadmap widget for our ideas portal turned on so you can better see what's in progress & planned.
J
James Sumners
Okay. Thank you.
Liya Ai
Hey @James - yup I've re-opened it with the team!
J
James Sumners
So will this "idea" be re-opened so that we can continue to receive updates on when it is completed?
Liya Ai
Hi Everyone! Apologies for the confusion - I'd chatted with a PM and we'd marked this as shipped but did want to acknowledge that was a mistake. We know this is a priority feature & appreciate the feedback - I'll provide updates here as I have them from our Product Team. @James: Nothing wrong, your filters statement is at the workflow level & doesn't work because it turns out we don’t support filters at the workflows level right now. We’re working with our support team to re-title / make the support article more clear. Thanks for your understanding! We know our ideas portal has been a source of frustration and I'm in the middle of getting ideas cleaned up & sorted. Over the next few months we hope to be responsive & open with communication.
Load More
→