mardi 21 août 2018

using more than one dependency in job gitlab-ci

Gitlab-ci: Here is my pipeline of a project with some stages:

stages:
  - prepare
  - build
  - deploy
  - build_test
  - test

And some stages have more than one job to execute, e.g. using for each oracle database environment (aca, spt, fin..): enter image description here

The question is: My pipeline skipped a test job (test:aca), I understood that happened because a job of the same kind of dependencies failed, in that ss the job deploy:spt failed, but my test:aca skipped.

Look to the test:aca job script:

test:aca:
  only: 
   - branches
  allow_failure: true
  stage: test
  tags:
   - teste
  script:
   - test script
  dependencies:
   - test:build_test
   - deploy:aca

It doesnt has dependencies with the deploy:spt, only with test:build_test and deploy:aca. How to enable to run the job test:aca ?

Aucun commentaire:

Enregistrer un commentaire