Unable to approve a pipeline waiting on input when permissions are specified for approvers

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Scope

      • Investigate what the problem is here - if you have the input up to restrict to particular users are we doing the right thing to allow this to work?
        • This needs an ATH test to ensure we keep doing the right thing.
      • Work out how to return the error to the UI (this may be a simple fix in the frontend to show the message on screen?)

      Note

      • vivek we can pass this ticket on to a frontend developer to add the message to the screen if that is not already the behaviour

      Original request
      My pipeline build has a input step that I have restricted approval from select users and I am part of those users but as I hit approve button to that input step it fails with

      "message" : "You need to be xxx, yyy, zzz to submit this", "code" : 400, "errors" : [ ]
      

      event though I am xxx, does blueocean not store the credentials/username of the person logged in ?

      Edit 1 : I restrict the user that can approve the input step with the following code :

      approvedInput = input id: 'dynamicInputApproval', message: 'Waiting for EP to approve', ok: 'Approve', parameters: [
                          [$class: 'ChoiceParameterDefinition', choices: "${dynamicInput["OS"]}", description: 'Select the os your job targets', name: 'OS'],
                          [$class: 'BooleanParameterDefinition', defaultValue: dynamicInput["Docker"], description: 'Enable docker workflow', name: 'Docker']
                                 ], submitter: "xxx,yyy,zzz", submitterParameter: "something"
      

      and yes, it works in classic view where it allows me (xxx) to approve it but fails on blue ocean with the above mentioned error.

            Assignee:
            Thorsten Scherler
            Reporter:
            Kuber Kaul
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: