Skip to content

Only and except when used with tags and branches does not seem to work

Summary

Tried to create a job which would be triggered only for tags which are not on master

Steps to reproduce

Created a job as follows:

deploy-versioned-staging:
  stage: test
  image: test
  script:
    - make test
  only:
    - tags
  except:
    - master

What is the current bug behavior?

The job was triggered for a tag created on the branch master

What is the expected correct behavior?

The job shouldn't have triggered for tags created on master branch

Environment

Gitlab CE omnibus install version 9.0.5