<p>Sadly I just switched jobs and I don't have access to a Jenkins instance (least not yet) so I cannot try it out for you.</p>

<p>That said some ideas quickly jump in my mind that could get you there.</p>

<p>I've had some success with the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin" rel="nofollow noreferrer">conditional build step</a> plugin though I don't know if it would work for build timeouts.  </p>

<p>If not directly perhaps as a means to change some values through the rest API ? Maybe using job <a href="https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build" rel="nofollow noreferrer">parameters</a> ? You could also split the job in two and call the appropriate one (with or without timeout) using a conditional build step (mentioned above)...</p>

<p>If you are int a pipeline you could use the timeout in a jenkins file.
<a href="https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-timeout-code-enforce-time-limit" rel="nofollow noreferrer">https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-timeout-code-enforce-time-limit</a>.</p>

<p>let me know if any of this is helping you.</p>

CC BY-SA 3.0
2017-04-18T21:11:59.380Z
2017-10-12T13:58:41.350Z
2017-10-12T13:58:41.350Z
Newtopian
<p>I use the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin" rel="noreferrer">Build timeout plugin</a> to alert when jobs are stuck. I have one job that triggers this alert because it contains a step with a long execution time. I would like to disable the build timeout plugin but only for that job, is there a way to do so? I'm using Jenkins v2.22.</p>

<p>We don't use the built-in option for the job not to terminate on timeout, we use sensu plugins to monitor the state of the likelyStuck variable.</p>

CC BY-SA 3.0
2017-04-13T15:34:48.403Z
What about unchecking the 'Abort the build if its stuck' in the job configuration ?
Tensibai
CC BY-SA 3.0
2017-04-13T15:43:31.960Z
Forgot to clarify, for alerting reasons we don't use that option. Instead we use a sensu alert that creates an alert if the likelyStuck variable is True
dededecline
CC BY-SA 3.0
2017-04-14T18:44:35.000Z
Then you should probably look at Silencing the alert in Sensu, since it's the alert that you want to avoid, not doing anything in Jenkins.
Adrian
<jenkins><jenkins-plugins><sensu>
Is there a way to disable a Jenkins plugin for a single job?
dededecline
# Is there a way to disable a Jenkins plugin for a single job?

(Asked by: username_0 on 2017-04-13)

I use the [Build timeout plugin](https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin) to alert when jobs are stuck. I have one job that triggers this alert because it contains a step with a long execution time. I would like to disable the build timeout plugin but only for that job, is there a way to do so? I'm using Jenkins v2.22.

We don't use the built-in option for the job not to terminate on timeout, we use sensu plugins to monitor the state of the likelyStuck variable.

**Tags:** jenkins, jenkins-plugins, sensu

> **Comments:**
> **username_1**: What about unchecking the 'Abort the build if its stuck' in the job configuration ?  
> **username_0**: Forgot to clarify, for alerting reasons we don't use that option. Instead we use a sensu alert that creates an alert if the likelyStuck variable is True  
> **username_2**: Then you should probably look at Silencing the alert in Sensu, since it's the alert that you want to avoid, not doing anything in Jenkins.  

---

## 1 answers

### Answer by username_3 on 2017-04-18. Score: 7

Sadly I just switched jobs and I don't have access to a Jenkins instance (least not yet) so I cannot try it out for you.

That said some ideas quickly jump in my mind that could get you there.

I've had some success with the [conditional build step](https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin) plugin though I don't know if it would work for build timeouts.

If not directly perhaps as a means to change some values through the rest API ? Maybe using job [parameters](https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build) ? You could also split the job in two and call the appropriate one (with or without timeout) using a conditional build step (mentioned above)...

If you are int a pipeline you could use the timeout in a jenkins file.
<https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-timeout-code-enforce-time-limit>.

let me know if any of this is helping you.


---

