Hello everyone,
we have a template which has jobs and every job triggers a template which runs tests for coverages and so on.
basically what we have not is the following:
.gitlab-ci.yml
prepareApi:
stage: release
variables:
DOCKER_REPOSITORY: '....'
rules:
- if: $CI_COMMIT_TAG
when: never
trigger:
include:
- local: csharp.gitlab-ci.yml
strategy: depend
csharp.gitlab-ci.yml
code_quality:
stage: test
script:
- echo 'do stuff...'
rules:
- if: $NO_TEST_COVERAGE
when: never
- if: $CI_COMMIT_TAG
when: never
- if: $CI_COMMIT_REF_NAME
when: on_success
needs:
- job: build:image
Note the variable $NO_TEST_COVERAGE.
When I run the pipeline manually and set the variable NO_TEST_COVERAGE with value to true, this job is still visible in the pipeline. Why is that?