Update when:delayed to show how it works with rules:when
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
There is no documentation available that shows how to use the when: delayed
feature in combination wiht rules:when
.
https://docs.gitlab.com/ee/ci/jobs/job_control.html#run-a-job-after-a-delay and/or https://docs.gitlab.com/ee/ci/yaml/index.html#when should be updated to show that the following example works:
myjob:
stage: build
rules:
- if: "$MY_CONDITION" # only run job if MY_CONDITION is fulfilled ...
when: delayed # ... but delay the execution ...
start_in: 120 minutes # ... for 120 minutes
- when: manual # or trigger manual to override MY_CONDITION
script:
- work.sh
Further details
Proposal
Who can address the issue
Other links/references
Edited by 🤖 GitLab Bot 🤖