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

Input step submitter parameter is ignored for administrators

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • Jenkins 2.151.0
      Pipeline Input Step: 2.9
    • pipeline-input-step-2.12

      I use the following snippet in my DSL pipeline

      operators = "ldapUserGroup"
      ChoiceParameterDefinition choice = new ChoiceParameterDefinition('continue', ['YES'] as String[], 'Description')
      returnValue = input message: 'DEPLOY ?', 
                          parameters: [choice], 
                          submitter: operators, 
                          submitterParameter: 'approver'
      

      I am not part of the ldapUserGroup thus I would expect the pipeline not to continue. However the pipeline continues anyway.

      07:39:05 Approved by Surname Lastname
      [Pipeline] }
      

      The same happens if i use a particular userID or list of userIDs rather than an ldapGroup

      operators = "userID0001,userID0002"
      ChoiceParameterDefinition choice = new ChoiceParameterDefinition('continue', ['YES'] as String[], 'Description')
      returnValue = input message: 'DEPLOY ?', 
                          parameters: [choice], 
                          submitter: operators, 
                          submitterParameter: 'approver'
      

          [JENKINS-56016] Input step submitter parameter is ignored for administrators

          papanito created issue -
          papanito made changes -
          Description Original: I use the following snippet in my DSL pipeline

           
          {code:java}
          operators = "ldapUserGroup"
          ChoiceParameterDefinition choice = new ChoiceParameterDefinition('continue', ['YES'] as String[], 'Description')
          returnValue = input message: 'DEPLOY ?',
                              parameters: [choice],
                              submitter: operators,
                              submitterParameter: 'approver'
          {code}
          I am not part of the {{ldapUserGroup}} thus I would expect the pipeline not to continue. However the pipeline continues anyway.

           

           
          {code:java}
          07:39:05 Approved by Surname Lastname
          [Pipeline] }
          {code}
           

          The same happens if i use a particular userID or list of userIDs rather than an ldapGroup
          {code:java}
          operators = "userID0001,userID0002"
          ChoiceParameterDefinition choice = new ChoiceParameterDefinition('continue', ['YES'] as String[], 'Description')
          returnValue = input message: 'DEPLOY ?',
                              parameters: [choice],
                              submitter: operators,
                              submitterParameter: 'approver'
          {code}
          New: I use the following snippet in my DSL pipeline
          {code:java}
          operators = "ldapUserGroup"
          ChoiceParameterDefinition choice = new ChoiceParameterDefinition('continue', ['YES'] as String[], 'Description')
          returnValue = input message: 'DEPLOY ?',
                              parameters: [choice],
                              submitter: operators,
                              submitterParameter: 'approver'
          {code}
          I am not part of the {{ldapUserGroup}} thus I would expect the pipeline not to continue. However the pipeline continues anyway.
          {code:java}
          07:39:05 Approved by Surname Lastname
          [Pipeline] }
          {code}
          The same happens if i use a particular userID or list of userIDs rather than an ldapGroup
          {code:java}
          operators = "userID0001,userID0002"
          ChoiceParameterDefinition choice = new ChoiceParameterDefinition('continue', ['YES'] as String[], 'Description')
          returnValue = input message: 'DEPLOY ?',
                              parameters: [choice],
                              submitter: operators,
                              submitterParameter: 'approver'
          {code}
          Devin Nusbaum made changes -
          Summary Original: Input Submitter parameter ignored New: Input step submitter parameter is ignored for administrators
          Devin Nusbaum made changes -
          Remote Link New: This issue links to "jenkinsci/pipeline-input-step-plugin#39 (Web Link)" [ 23601 ]
          Devin Nusbaum made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Devin Nusbaum made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Devin Nusbaum made changes -
          Assignee New: papanito [ papanito ]
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Devin Nusbaum made changes -
          Link New: This issue is caused by JENKINS-48998 [ JENKINS-48998 ]
          Wadeck Follonier made changes -
          Released As New: pipeline-input-step-2.12
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Wadeck Follonier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Wadeck Follonier made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

            papanito papanito
            papanito papanito
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: