Gitlab CI script: exclude branches
All you need to do is use except
in the gitlab-ci.yml
file and add your branches directly below like this:
mybuild:
stage: test
image: somedockerimage
script:
- some script running
except:
- branch-name
This is working on my project without problems.