diff options
author | Brad King <brad.king@kitware.com> | 2021-10-27 16:45:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-27 17:30:20 (GMT) |
commit | ada9855b781fceebe2f97fcc1a8509130bbc984e (patch) | |
tree | 11bc05fbaf9a14ce9cae3c4469cfd4c845515458 /.gitlab/rules.yml | |
parent | 70024a4cf536f2d132e718d3e5b1d8d38b22a51b (diff) | |
download | CMake-ada9855b781fceebe2f97fcc1a8509130bbc984e.zip CMake-ada9855b781fceebe2f97fcc1a8509130bbc984e.tar.gz CMake-ada9855b781fceebe2f97fcc1a8509130bbc984e.tar.bz2 |
gitlab-ci: Run manual jobs automatically only on scheduled pipelines
Previously we ran manual jobs automatically in the `cmake/cmake`
project integration branches. Change this to happen only when
the pipeline is created by a schedule.
Also, start automatic jobs in scheduled pipelines without delay.
Diffstat (limited to '.gitlab/rules.yml')
-rw-r--r-- | .gitlab/rules.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab/rules.yml b/.gitlab/rules.yml index 4846fea..a871b8f 100644 --- a/.gitlab/rules.yml +++ b/.gitlab/rules.yml @@ -15,9 +15,10 @@ when: never - if: '$CI_MERGE_REQUEST_ID' when: manual + - if: '$CI_PROJECT_PATH == "cmake/cmake" && $CI_PIPELINE_SOURCE == "schedule"' + when: on_success - if: '$CI_PROJECT_PATH == "cmake/cmake"' - when: delayed - start_in: 5 minutes + when: manual - when: never .run_automatically: @@ -34,6 +35,8 @@ when: never - if: '$CI_MERGE_REQUEST_ID' when: on_success + - if: '$CI_PROJECT_PATH == "cmake/cmake" && $CI_PIPELINE_SOURCE == "schedule"' + when: on_success - if: '$CI_PROJECT_PATH == "cmake/cmake"' when: delayed start_in: 5 minutes |