我想检查我是否可以运行一个只有条件/更改的作业:当功能分支上的特定文件夹发生更改时,无论是否满足更改条件,相同的作业都应该始终在主分支上运行。
thevers:
stage: stage_1
tags:
- dind
- stable
before_script:
- *install_grails_debian
script:
- ./grailsw clean-all --non-interactive
- ./grailsw refresh-dependencies --non-interactive
- ./grailsw maven-install
only:
changes:
- thevers/**/*
artifacts:
name: "$CI_PROJECT_NAME-$CI_JOB_NAME-$CI_COMMIT_SHA"
paths:
- .m2/
expire_in: 5 days
when: always
allow_failure: true发布于 2019-07-23 03:49:34
目前,完成您所请求的任务的唯一方法是复制该作业,一个作业指定您现在所拥有的only:changes部分,另一个作业使用:
only:
- master未来的版本将为CI作业引入更灵活的规则,这将使您更容易做到这一点。看着GitLab CE issue 60085。
https://stackoverflow.com/questions/57152584
复制相似问题