Unable to fetch / calculate delayed time for pipeline job.
I’m using GitLab.com.
I’ve set up a 2 step scheduled pipeline.
My use case is the following:
stage1: announce stage2 in x time. —x time passes-> stage2.
I’m doing this using the
when: delayed and
start_in: 5 minutes.
stage_t0: stage: stage_t0 only: - schedules script: - echo "Announcing deploy" stage_t1: stage: stage_t1 only: - schedules script: - echo "Deploying" when: delayed start_in: 5 minutes
Another way of doing this is being able to delay the second stage using a environment variable (which I could fetch via the API), unfortunately variables don’t seem to be supported for the start_in field.