jobs.<job_id>.timeout-minutes

1 minute read

Use jobs.<job_id>.timeout-minutes to set the maximum number of minutes to run a job before CloudBees automatically cancels the job.

Table 1. Summary of configurable and non-configurable timeouts

Description

Type

Duration

User-configurable

Workflow

Maximum

72 hours

Job

Maximum

3 hours

Job

Default

1 hour

Approval

Maximum

48 hours

The maximum timeout for a workflow run, including completing all jobs and manual approvals, is 72 hours, and is not configurable. Therefore, the user-configured maximum number of minutes to run a job must not exceed 72 hours.

Users can configure the default job timeout to be anything less than the maximum (3 hours).

The cloudbees.scm.token is issued when the workflow is scheduled, and some SCM systems limit the token validity to 1 hour. For this reason, CloudBees strongly recommends using CloudBees action: Configure Git global credentials to request a live token.