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

input link is broken when adding the submitterParamerter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • None

      When adding the submitterParameter to the input step the prompt to proceed breaks.

      Jenkins version 2.164.2

      Link Broken:

      pipeline {
          agent any
      
          stages {
              stage('Deploy') {
                  steps {
                      script {
                        def inputUser = input message: 'Do you want to contiue?', submitterParameter:'subuser', ok: 'yes'
                          echo "This is the users name: ${inputUser}"
                      }
                  }
              }
          }
      }
      

      Link Not Broken but approver is not shown (shows up as null):

      pipeline {
          agent any
      
          stages {
              stage('Deploy') {
                  steps {
                      script {
                        def inputUser = input message: 'Do you want to contiue?'
                           echo "This is the users name: ${inputUser}"
                      }
                  }
              }
          }
      }
      

      Any help would be great.

      Thanks!

            Unassigned Unassigned
            tfoster THOMAS FOSTER
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: