gitlab version: 8.9.5 (community edition)
Given the following gitlab-ci.yml example below, how come the build numbers in the gitlab UI increment for the different stages?
In this example, I have 2 stages and once every single stage completes the CI_BUILD_ID increments even though it part of the a singe build workflow. Is this expected behaviour?
stages:
- deploy_to_staging
- deploy_to_prod
deploy_to_staging:
stage: deploy_to_staging
environment: staging
script:
- ./scripts/deploy.sh
when: on_success
only:
- master
deploy_to_prod:
stage: deploy_to_prod
environment: prod
script:
- ./scripts/deploy.sh
when: on_success
only:
- master