Gitlab CI / CD:无法重新启动下游管道

时间:2020-02-15 11:48:37

标签: gitlab

这是项目A中的一块.gitlab.yml,它触发了项目B管道(部署由项目A构建的docker的地形):

stages:
  - compile
  - dockerize
  - test
  - deploy

compile_ts_to_js:
  stage: compile
  image: node:8-alpine
  artifacts:
    paths:
      - build
  before_script:
    - apk add --update build-base python
  script:
    - yarn
    - ./node_modules/.bin/tsc


run_test:
  stage: test
  image: docker:18-git
  variables:
    DOCKER_DRIVER: overlay2
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
  services:
    - docker:18-dind
  before_script:
    - apk add --update bash py-pip python-dev libffi-dev openssl-dev gcc libc-dev make
    - pip install docker-compose
    - docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
  script:
    - ./bin/test/run.sh
  except:
    - master    

deploy_dev_en:
  stage: deploy
  variables:
    TENANT: en
    ENV: dev
  trigger:
    project: shoutout/terraform-infra
    branch: master
    strategy: depend
  only:
    - dev

如果触发的管道失败,则无法重新启动它,请参见所附图片:

enter image description here

该未实现的功能(重新启动下游管道)或我的配置丢失了启用该功能的任何内容吗?

0 个答案:

没有答案