【发布时间】:2019-11-30 19:36:26
【问题描述】:
我想检查我是否可以运行仅具有条件/更改的作业:当功能分支上的特定文件夹发生更改并且相同的作业应始终在主分支上运行时,无论更改条件如何遇到了。
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
【问题讨论】:
标签: git gitlab gitlab-ci git-branch jobs