Define the default value for only/except policies

What does this MR do?

This is a preliminary work for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23217#note_121796129.

Currently, if a job does not have only/except policies, the policy is considered as an unspecified state, and therefore the job is executed regardless of how it's executed and which branch/tags are targetted.

Ideally, this should be specified as only: ['branches', 'tags'], as it indicates that unspecified policy jobs are meant to run on any git references.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Kamil Trzciński

Merge request reports

Loading