Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71362

build timeout plugin is not working as expected

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • build-timeout-plugin
    • None

      I have installed global build timeout plugin and its version is 1.30. and I have setup timeout for 5 minutes for testing but its not aborting the pipeline after 5 minutes .

      seems like its not working as expected , could you please help me to resolve it.

       

          [JENKINS-71362] build timeout plugin is not working as expected

          Markus Winter added a comment -

          From the documentation here:

          This plugin isn’t applicable to pipelines.

          Markus Winter added a comment - From the documentation here : This plugin isn’t applicable to pipelines.

          megha added a comment -

          mawinter69 , is there any other alternatives of this plugin where we can manage global timeout for all the pipelines in Jenkins.

          megha added a comment - mawinter69 , is there any other alternatives of this plugin where we can manage global timeout for all the pipelines in Jenkins.

          megha added a comment -

          mawinter69 , is there any other alternatives of this plugin where we can manage global timeout for all the pipelines in Jenkins.?
          any update on below query 

          megha added a comment - mawinter69 , is there any other alternatives of this plugin where we can manage global timeout for all the pipelines in Jenkins.? any update on below query 

          Kris Stern added a comment -

          According to the README.md: Use the timeout step in workflow-basic-steps instead for pipelines. 

          Kris Stern added a comment - According to the README.md: Use the  timeout  step in workflow-basic-steps instead for pipelines. 

          megha added a comment -

          krisstern mawinter69 this timeout step is pipeline specific right ? is there a way to implement it globally for all the pipelines in Jenkins ? 

          megha added a comment - krisstern mawinter69 this timeout step is pipeline specific right ? is there a way to implement it globally for all the pipelines in Jenkins ? 

          Kris Stern added a comment - - edited

          Hi megha1234,

          I am not sure if you can implement the timeout step globally for all pipelines, but in declarative pipelines you can set up a "global" timeout setting as follows:

          pipeline {
              agent any
              options {
                  timeout(time: 1, unit: 'HOURS') 
              }
              stages {
                  stage('Example') {
                      steps {
                          echo 'Hello World'
                      }
                  }
              }
          }
          

          Kris Stern added a comment - - edited Hi megha1234 , I am not sure if you can implement the timeout step globally for all pipelines, but in declarative pipelines you can set up a "global" timeout setting as follows: pipeline { agent any options { timeout(time: 1, unit: 'HOURS' ) } stages { stage( 'Example' ) { steps { echo 'Hello World' } } } }

            kohsuke Kohsuke Kawaguchi
            megha1234 megha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: