Hello.
I have a problem with the GitLab pipeline.
I expected the job BUILD-ETDCS to fail.
How to fix it?
GitLab: self-managed
Runners: Ubuntu Linux, Windows
.gitlab-ci.yaml:
stages:
- unit-tests
- build
- integration-test
unit-test-job:
stage: unit-tests
script:
- echo "Running unit testing... This will take a while."
////... any code
tags:
- win32-msvc
BUILD-ETDCS:
stage: build
needs:
- job: unit-test-job
when: always
script:
- ./build.sh
tags:
- linux-oe-g++
variables:
GIT_SUBMODULE_STRATEGY: recursive
BUILD-CONFIG_TOOLS:
stage: build
needs:
- job: unit-test-job
script:
- echo "Compiling the code..."
////... any code
tags:
- win32-msvc
artifacts:
paths:
- build/bin
expire_in: 30 mins
variables:
GIT_SUBMODULE_STRATEGY: recursive
integration-test-job:
stage: integration-test
script:
- echo "Running integration tests... This will take a while."
////... any code
tags:
- win32-msvc
needs:
- job: BUILD-CONFIG_TOOLS
artifacts: true