jenkinsci / build-timeout-plugin

Jenkins build-timeout plugin
https://plugins.jenkins.io/build-timeout/
31 stars 80 forks source link

Global Build timeout does not work for Multibranch Workflows #115

Open jyepesr1 opened 1 year ago

jyepesr1 commented 1 year ago

Jenkins and plugins versions report

Environment ```text Result Jenkins: 2.375.4 OS: Linux - 5.4.228-132.418.amzn2.x86_64 Java: 17.0.6 - Eclipse Adoptium (OpenJDK 64-Bit Server VM) --- build-timeout:1.28 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

5.4.228-132.418.amzn2.x86_64

Reproduction steps

  1. We have set the global time out to Absolute 3 minutes (the minimum available)
  2. We ran a multibranch workflow

Expected Results

Multibranch workflow should be aborted after 3 mins

Actual Results

The job is never aborted

Anything else?

I can confirm the timeout works on free style jobs, but not in multibranch

jyepesr1 commented 1 year ago

or Do you consider a workflow and pipeline the same? so multibranch workflow won't also work like the pipeline job?

smartYSC commented 2 months ago

We also observe that the global timeout does not work in multibranch pipelines.

timeout() {} in the Jenkinsfile works. It would still be nice to have a global timeout for all pipelines that do not configure it specifically.