-
Bug
-
Resolution: Fixed
-
Major
-
None
-
-
iapetus
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.
- is duplicated by
-
JENKINS-41421 input step's parameter "submitterParameter" not supported
- Resolved