Is it possible to use the new Pipeline Schedules feature to run different CI jobs at different times? I’d like to run a small test suite on every commit, but a larger one nightly, an even larger one weekly, and so on. What’s the best way to do this?
Thanks.
pmatos
April 25, 2018, 6:13am
2
I have just asked the same thing:
I have a pipeline, which is just a set of jobs. There’s no sequence. There’s just integration-test, unittest and benchmark. How can I schedule a nightly job to just run the benchmark?
I have the scheduled job running nightly, however it’s running all of the jobs in the pipeline, as I haven’t found a way to restrict which jobs to run. Is this possible?
I haven’t found a way to do that yet.
pmatos
April 25, 2018, 6:16am
3
OK, after reading:
https://docs.gitlab.com/ce/user/project/pipelines/schedules.html
It seems that you can at least specify coarsely that some jobs should only run when scheduled with:
only:
- schedules
This gives some control, although I agree that it’s very (too) coarse.