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

No flow execution for input in lock block after restart

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After restart, having input step inside lock and several jobs waiting to acquire the lock, not able to Proceed or Abort anymore.

      Steps to reproduce:
      1) Have "input" inside a lock block
      2) Start several build of the same job (the earliest will block on "input" and others block on "lock")
      3) Restart Jenkins

      Observed behaviour:
      Can not Proceed or Abort the build with buttons anymore. Even generic abort button does not work for the build, have to "kill" it.

      Expected behaviour:
      One can Proceed or Abort the build.

      Minimal pipeline to reproduce:

      pipeline {
          agent none
          stages {
              stage('a') {
                  steps {
                      lock('lock-me-in') {
                          script {
                              input 'Are you okay?'
                          }
                      }
                  }
              }
          }
      }
      

      Output in the jenkins log:

      WARNING org.jenkinsci.plugins.workflow.support.steps.input.InputAction:  no flow execution found for input-simple #8
      

        Attachments

          Activity

          ysoldak Yurii Soldak created issue -
          ysoldak Yurii Soldak made changes -
          Field Original Value New Value
          Description After restart, having input step inside lock and several jobs waiting to acquire the lock, not able anymore to Proceed or Abort.

          Steps to reproduce:
          1) Have "input" inside a lock block
          2) Start several build of the same job (the earliest will block on "input" and others block on "lock")
          3) Restart Jenkins

          Observed behaviour:
          Can not Proceed or Abort the build with buttons anymore. Even generic abort button does not work for the build, have to "kill" it.

          Expected behaviour:
          One can Proceed or Abort the build.

          Minimal pipeline to reproduce:
          {noformat}
          pipeline {
              agent none
              stages {
                  stage('a') {
                      steps {
                          lock('lock-me-in') {
                              script {
                                  input 'Are you okay?'
                              }
                          }
                      }
                  }
              }
          }
          {noformat}

          Output in the jenkins log:
          {noformat}
          WARNING org.jenkinsci.plugins.workflow.support.steps.input.InputAction: no flow execution found for input-simple #8
          {noformat}
          After restart, having input step inside lock and several jobs waiting to acquire the lock, not able to Proceed or Abort anymore.

          Steps to reproduce:
           1) Have "input" inside a lock block
           2) Start several build of the same job (the earliest will block on "input" and others block on "lock")
           3) Restart Jenkins

          Observed behaviour:
           Can not Proceed or Abort the build with buttons anymore. Even generic abort button does not work for the build, have to "kill" it.

          Expected behaviour:
           One can Proceed or Abort the build.

          Minimal pipeline to reproduce:
          {noformat}
          pipeline {
              agent none
              stages {
                  stage('a') {
                      steps {
                          lock('lock-me-in') {
                              script {
                                  input 'Are you okay?'
                              }
                          }
                      }
                  }
              }
          }
          {noformat}
          Output in the jenkins log:
          {noformat}
          WARNING org.jenkinsci.plugins.workflow.support.steps.input.InputAction: no flow execution found for input-simple #8
          {noformat}
          tgr Tobias Gruetzmacher made changes -
          Assignee Tobias Gruetzmacher [ tgr ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ysoldak Yurii Soldak
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: