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

REST API for input step not documented in _api.jelly

      In order to approve a workflow input step, you can POST to …/submit?proceed but this is not yet documented in _api.jelly.

          [JENKINS-26224] REST API for input step not documented in _api.jelly

          C Flamm added a comment -

          Glad I've found this issue. Given the following information where would I have to post to?

          • Jenkins base url MY_JENKINS_URL
          • job name MY_JOB
          • job number MY_NUM
          • input id MY_INPUT_ID
          • input value MY_INPUT_VALUE

          Tried many combinations but no luck so far...

          • MY_JENKINS_URL/job/MY_JOB/MY_NUM/input/MY_INPUT_ID?MY_INPUT_VALUE
          • MY_JENKINS_URL/job/MY_JOB/MY_NUM/input/MY_INPUT_ID/submit?MY_INPUT_VALUE

          Would be great if you could help or point me to documentation covering this. But AFAIU there's none yet, right? Thanks, Christian.

          C Flamm added a comment - Glad I've found this issue. Given the following information where would I have to post to? Jenkins base url MY_JENKINS_URL job name MY_JOB job number MY_NUM input id MY_INPUT_ID input value MY_INPUT_VALUE Tried many combinations but no luck so far... MY_JENKINS_URL/job/MY_JOB/MY_NUM/input/MY_INPUT_ID?MY_INPUT_VALUE MY_JENKINS_URL/job/MY_JOB/MY_NUM/input/MY_INPUT_ID/submit?MY_INPUT_VALUE Would be great if you could help or point me to documentation covering this. But AFAIU there's none yet, right? Thanks, Christian.

          Daniel Beck added a comment -

          This is an issue tracker, not a support site. You're just asking for the documentation whose lack thereof is tracked in this issue.

          Daniel Beck added a comment - This is an issue tracker, not a support site. You're just asking for the documentation whose lack thereof is tracked in this issue.

          Andrew Bayer added a comment -

          Does this actually make sense in _api.jelly? And for what class?

          Andrew Bayer added a comment - Does this actually make sense in _api.jelly ? And for what class?

          Jesse Glick added a comment -

          It is not documented because this endpoint was not designed for noninteractive use and attempts to do so are not supported. See linked issues.

          Jesse Glick added a comment - It is not documented because this endpoint was not designed for noninteractive use and attempts to do so are not supported. See linked issues.

          Daniel Beck added a comment - - edited

          It is not documented because this endpoint was not designed for noninteractive use and attempts to do so are not supported.

          The plugin says otherwise (AFAIUI this is why id exists in the first place): https://github.com/jenkinsci/pipeline-input-step-plugin/blob/f1aa4f40528994359aaad2b82d3fb41508c682db/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/input/InputStep/help-id.html#L5

          Or are there 2+ endpoints for this, and only another one is intended to be used non-interactively?

          Daniel Beck added a comment - - edited It is not documented because this endpoint was not designed for noninteractive use and attempts to do so are not supported. The plugin says otherwise (AFAIUI this is why id exists in the first place): https://github.com/jenkinsci/pipeline-input-step-plugin/blob/f1aa4f40528994359aaad2b82d3fb41508c682db/src/main/resources/org/jenkinsci/plugins/workflow/support/steps/input/InputStep/help-id.html#L5 Or are there 2+ endpoints for this, and only another one is intended to be used non-interactively?

          Jesse Glick added a comment -

          https://github.com/jenkinsci/pipeline-plugin/commit/a800f53d9b5cbb7bc1ad84bbe61de2e60ea67a70 indicates id was customizable from the beginning, but that does not mean that scripted usage was fully thought out.

          Jesse Glick added a comment - https://github.com/jenkinsci/pipeline-plugin/commit/a800f53d9b5cbb7bc1ad84bbe61de2e60ea67a70 indicates id was customizable from the beginning, but that does not mean that scripted usage was fully thought out.

            Unassigned Unassigned
            varmenise valentina armenise
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: