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

Elastic timeout in pipeline

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Akin to the build-timeout plugin (which alas is not suitable for direct reuse from Workflow), there should be an option for timeout to expire after a time compared to a "similar" block in the previous build.

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            So the first thing that jumps out at me is having to find the "similar" block in previous builds. Once I understand that, the rest should be pretty easy. =)

            Show
            abayer Andrew Bayer added a comment - So the first thing that jumps out at me is having to find the "similar" block in previous builds. Once I understand that, the rest should be pretty easy. =)
            Hide
            jglick Jesse Glick added a comment -

            I think the only reliable way to do that is to have the option include a unique textual ID, whereupon an Action gets attached to the FlowNode recording the ID and observed run time for use in subsequent builds. (TimingAction might already cover the latter.)

            Show
            jglick Jesse Glick added a comment - I think the only reliable way to do that is to have the option include a unique textual ID, whereupon an Action gets attached to the FlowNode recording the ID and observed run time for use in subsequent builds. ( TimingAction might already cover the latter.)
            Hide
            jglick Jesse Glick added a comment -
            stage('Build') {
              node {
                checkout scm
                timeout(id: 'main', initial: 10, percentage: 150) {
                  sh 'make'
                }
                stash name: 'bin', includes: 'a.out'
              }
            }
            stage('Test') {
              node {
                unstash 'bin'
                timeout(id: 'test', initial: 60, percentage: 150) {
                  sh 'make test'
                }
              }
            }
            
            Show
            jglick Jesse Glick added a comment - stage( 'Build' ) { node { checkout scm timeout(id: 'main' , initial: 10, percentage: 150) { sh 'make' } stash name: 'bin' , includes: 'a.out' } } stage( 'Test' ) { node { unstash 'bin' timeout(id: 'test' , initial: 60, percentage: 150) { sh 'make test' } } }
            Hide
            ikedam ikedam added a comment -
            Show
            ikedam ikedam added a comment - pipeline-graph-analysis-plugin::StatusAndTiming#computeChunkTiming is available for get execution durations.
            Show
            ikedam ikedam added a comment - https://github.com/jenkinsci/workflow-basic-steps-plugin/pull/19
            Hide
            adir_atias Adir Atias added a comment -

            we're looking for a solution exactly for this case,

            is there any update ? 

            Show
            adir_atias Adir Atias added a comment - we're looking for a solution exactly for this case, is there any update ? 

              People

              • Assignee:
                ikedam ikedam
                Reporter:
                jglick Jesse Glick
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: