【发布时间】:2019-11-03 07:50:14
【问题描述】:
考虑以下gilab-ci.yml 脚本:
stages:
- build_for_ui_automation
- independent_job
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
before_script:
- gem install bundler
- bundle install
build_for_ui_automation:
dependencies: []
stage: build_for_ui_automation
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
- fastlane/test_output
- fastlane/report.xml
script:
- bundle exec fastlane ui_automation
tags:
- ios
only:
- schedules
allow_failure: false
# This should be added and trigerred independently from "build_for_ui_automation"
independent_job:
dependencies: []
stage: independent_job
artifacts:
paths:
- fastlane/screenshots
- fastlane/logs
- fastlane/test_output
- fastlane/report.xml
script:
- bundle exec fastlane independent_job
tags:
- ios
only:
- schedules
allow_failure: false
我希望能够独立安排这两个工作,但要遵守规则:
- build_for_ui_automation 每天在 5 AM 运行
- independent_job 每天在 下午 5 点运行
但是,在当前设置下,我只能触发整个管道,这将依次执行两个作业。
我怎样才能有一个只触发一个作业的计划?
【问题讨论】:
标签: gitlab gitlab-ci gitlab-ci-runner gitlab-ce