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

Add optional 'timeout' parameter to 'input' step

      An optional 'timeout' parameter for the 'input' pipeline step would be very nice. In case of no response within specified amount of time, the build would then fail. Or maybe even make that selectable: fail or continue.

          [JENKINS-36235] Add optional 'timeout' parameter to 'input' step

          Joost created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 172928 ] New: JNJira + In-Review [ 184832 ]
          Dan Alvizu made changes -
          Component/s New: workflow-plugin [ 18820 ]
          Component/s Original: build-pipeline-plugin [ 15962 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: pipeline-input-step-plugin [ 21708 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-39458 [ JENKINS-39458 ]
          Andrew Bayer made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Steve Todorov made changes -
          Link New: This issue is blocked by JENKINS-56259 [ JENKINS-56259 ]
          Ricardo Chiriboga made changes -
          Comment [ Hi All,

          Have we tried using options timeout within the stage ?

          [https://www.jenkins.io/doc/book/pipeline/syntax/#options]

          Currently testing it, but I feel that would help at least while the attribute is added into the directive.
          {code:java}
          pipeline {
              agent any
              stages {
                  stage('Example') {
                      options {
                          timeout(time: 1, unit: 'HOURS')
                      }
                      input{...}
                      steps {
                          echo 'Hello World'
                      }
                  }
              }
          }
          {code} ]

            Unassigned Unassigned
            jrkoiter Joost
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: