【问题标题】:using more than one dependency in job gitlab-ci在作业 gitlab-ci 中使用多个依赖项
【发布时间】:2018-08-21 14:48:48
【问题描述】:

Gitlab-ci:这是我的一个项目的管道,有几个阶段:

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

有些阶段有不止一项工作要执行,例如用于每个 oracle 数据库环境(aca、spt、fin..):

问题是: 我的管道跳过了一个测试作业 (test:aca),我知道这是因为同种依赖项的作业失败了,在那个 ss 中,作业 deploy:spt 失败了,但是我的 test:aca 跳过了.

查看 test:aca 作业脚本:

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

它与 deploy:spt 没有依赖关系,只有 test:build_test部署:aca。如何启用运行作业 test:aca

【问题讨论】:

  • 是否允许deploy:spt 失败?奇怪的是,当第三阶段的作业失败时,管道进入第四阶段

标签: selenium testing ui-automation devops gitlab-ci


【解决方案1】:

您是否尝试过删除 deploy:aca 并仅使用 test:build_test 作为依赖项?

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

【讨论】:

    猜你喜欢
    • 2016-02-05
    • 2018-08-24
    • 2020-04-27
    • 1970-01-01
    • 1970-01-01
    • 2016-03-13
    • 1970-01-01
    • 2023-03-14
    • 2021-05-05
    相关资源
    最近更新 更多