title: Gitlab-CI: Define rules globally and overwrite them locally in a stage
body: <p>Is it possible to globally define the rules for when the stages should be executed? And only if these are different that they are defined in the respective stage as in my example?</p>
  <pre><code>[gitlab-ci.yml]
  
  linter1:
    rules:
    - if: '$CI_PIPELINE_SOURCE == &quot;push&quot;'
      when: always
    - when: never
  
  linter2:
    rules:
    - if: '$CI_PIPELINE_SOURCE == &quot;push&quot;'
      when: always
    - when: never
  
  validate:
    rules:
    - if: '$CI_PIPELINE_SOURCE == &quot;web&quot;'
      when: on_success
    - when: never
  
  deploy:
    rules:
    - if: '$CI_PIPELINE_SOURCE == &quot;web&quot;'
      when: on_success
    - when: never
  </code></pre>