Add job timeout as CI environment variable
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
We have a script that runs both manually and in our Gitlab CI. To modify the behavior of the script, it should know the timeout it has. However, there is no CI environment variable to obtain the current job timeout. Hardcoding the value is risky as it won't be updated if job timeout is updated via web UI.
Intended users
DevOps Engineer
Further details
Better control over Gitlab CI
Proposal
Just have a CI environment variable like CI_JOB_TIMEOUT or something like that
Permissions and Security
Just like the other environment variables
Documentation
Add it to the predefined environment variables table
Availability & Testing
Make sure variable gets updated when it's updated via web UI
What does success look like, and how can we measure that?
CI scripts can read job timeout as environment variable
What is the type of buyer?
All of them