User branches are like
origin/username/CICD
Official branches are origin/CICD og origin/master
All part of the same project.
CICD branch has a different Declarative Pipeline for CICD release build and deployment.
Same goes for user branches that are based on this CICD branch.
All other branches have our standard Scripted Pipeline.
So we have already splitt different pipelines for these.
When all branches based on CICD are building, we don't want to build release and deploy from user branches of it, only the origin/CICD.
I wanted to avoid username/CICD being automatically triggered and built when origin/master had built. It should only trigger on origin/CICD.