Turn bridge into `running` before creating downstream
What does this MR do and why?
This is a change for this issue #356759 (comment 1109775441).
Also checkout the feature flag issue #377789 (closed)
In order to display and calculate the duration for a pipeline that has :depend bridge jobs, the started_at needs to be set.
How to set up and validate locally
- Create a project
- Add
.gitlab-ci.ymlwith:
run-child-pipeline: # This job runs in the test stage.
trigger:
include: ci/child-pipeline.yml
strategy: depend
- Add
ci/child-pipeline.ymlwith:
child-job: # This job runs in the build stage, which runs first.
script:
- echo "Running child job..."
- sleep 20
- echo "Running complete."
- Commit changes and trigger the CI build
- You should see the duration appears in the pipeline listing page for this build.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tianwen Chen