Below you find a .gitlab-ci.yml file including a rule to execute the job buildAll only, if the gitlab user john.doe made the commit.
# # # stages: - build buildAll: stage: build tags: [pySpectra] script: - echo "this is job buildAll" - exit 0 rules: - if: $GITLAB_USER_LOGIN == "john.doe" when: always - when: never buildPart: stage: build tags: [pySpectra] script: - echo "this is job buildPart" - exit 0