Skip to content

Add run stage environment variable

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do?

Add which run (sub) stage is currently being executed as an environment variable available to the CI configuration.

Why was this MR needed?

If you're doing any sort of custom behaviour on the SSH execution side, a deterministic way of knowing which sub-stage we're in is necessary.

What's the best way to test this MR?

Compile and add the binary to your environment and then run a job and echo out the "CUSTOM_CI_JOB_RUN_STAGE" env var.

What are the relevant issue numbers?

#82

Edited by 🤖 GitLab Bot 🤖

Merge request reports