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

Git Parameter does not work as input in a scripted pipeline

    Details

    • Type: New Feature
    • Status: In Progress (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: git-parameter-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.89.1
      Git Parameter Plugin 0.90
    • Similar Issues:

      Description

      I tried to use the git parameter plugin in a pipeline script to fill an input (Target Branch to merge to in another repository).

      According to https://jenkins.io/doc/pipeline/steps/pipeline-input-step/ GitParameters should work for inputs, 

      input(
        id: 'Proceed1', message: 'Specifiy QA Candiate Branch', 
        parameters: [
          [$class: 'GitParameterDefinition', 
           name: 'candidateBranch', 
           type: 'PT_BRANCH', 
           ]
        ]
      )

      This gets rendered but whatever I do the branch select stays empty (When refreshing I can see a brief spinner with "Retrieving..."). I also tried to capture related logs but couldn't get anything (From looking at the code only exceptional cases are logged).

      I also tried as documented in https://jenkins.io/doc/pipeline/steps/pipeline-input-step/

      type: 'Branch' 

      Just to validate that it works in general I added the parameter to the job itself and if I trigger a parameterized build the select is properly filled.

        Attachments

          Activity

          Hide
          klimas7 Boguslaw Klimas added a comment -

          Hi Magnus Jungsbluth

          Thanks for your request, unfortunately plugin doesn't support 'input-steps'.
          I changing the issue on a feature not a bug.
          I did small research and change in source code isn't simple.
          I will be able to come back this issue only at the beginning of April

          Regards

          Bogusław

          Show
          klimas7 Boguslaw Klimas added a comment - Hi Magnus Jungsbluth Thanks for your request, unfortunately plugin doesn't support 'input-steps'. I changing the issue on a feature not a bug. I did small research and change in source code isn't simple. I will be able to come back this issue only at the beginning of April Regards Bogusław
          Hide
          mrlov m l added a comment -

          Hi! Any progress on this feature? It would be very useful!

          Show
          mrlov m l added a comment - Hi! Any progress on this feature? It would be very useful!
          Hide
          nkurtiak Nazar Kurtiak added a comment -

          Hello. 
          Also wondering if there is any progress on this issue. 

          Show
          nkurtiak Nazar Kurtiak added a comment - Hello.  Also wondering if there is any progress on this issue. 

            People

            • Assignee:
              klimas7 Boguslaw Klimas
              Reporter:
              mjungsbluth Magnus Jungsbluth
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: