Search code examples
jenkinsgroovyopen-source

Where to find the source code for Jenkins' `input()` method?


Jenkins is open source. However, I could not find the source code for input() as in Jenkins ref: input and example below. I looked at Jenkins source code well as Groovy's reference, but could not find it. Where can I locate the source code for this function? I need a link.

Example usage:


    timeout(time: 2, unit: 'MINUTES') {

         r = input(message: 'message', submitter: "id1", submitterParameter: 'who', parameter: 'a,b')

         println('Responded by: ' + r.toString())
      }


Solution

  • I believe this comes from a plug-in which can be found here:

    https://github.com/jenkinsci/pipeline-input-step-plugin