• Blue Ocean 1.0-rc3

      Notes
      This will work when there is a single approver specified but not when there are multiple. Blue Ocean will respond with a 400 error. Due to JENKINS-42920 the user will not receive feedback on why they are not allowed to proceed or any other error, which made this problem more confusing.

      To run these scenarios you will need two users - 'alice' and 'bob'.

      Scenario 1 - current user is 'alice', single approver
      This works fine in Blue Ocean

      node {
          echo 'hello world'
          input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice"
      }
      

      Scenario 2 - current user is 'alice', multiple approvers

      node {
          echo 'hello world'
          input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice,bob"
      }
      

      Original request
      I use input step like below:

      timeout(time: 5, unit: "DAYS") \{
      
          input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A,B,C"
      
      }
      

      can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.

          [JENKINS-42872] Inputs with multiple approvers do not work

          hanks justin created issue -
          hanks justin made changes -
          Description Original: I use input step like below:

           

          ```

          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "hanks, jsuksl, yumuem-sl"

          }

          ```

           

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          New: I use input step like below:

           

          ```

          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }

          ```

           

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          James Dumay made changes -
          Epic Link New: JENKINS-38490 [ 174672 ]
          James Dumay made changes -
          Sprint New: Blue Ocean 1.1 [ 271 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Assignee Original: hanks justin [ hanks ]
          James Dumay made changes -
          Link New: This issue relates to JENKINS-42920 [ JENKINS-42920 ]
          James Dumay made changes -
          Description Original: I use input step like below:

           

          ```

          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }

          ```

           

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          New: I use input step like below:
          {code}
          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }
          {code}

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          James Dumay made changes -
          Description Original: I use input step like below:
          {code}
          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }
          {code}

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          New: *Notes*
          This will work when there is a single approver specified but not when there are multiple. Blue Ocean will respond with a 400 error.

          To run the scenario you will need two users - 'alice' and 'bob'.

          *Scenario 1 - current user is 'alice', single approver*
          This works fine in Blue Ocean
          {code}
          node {
              echo 'hello world'
              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice"
          {code}

          *Scenario 2 - current user is 'alice', multiple approvers*
          {code}
          node {
              echo 'hello world'
              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice, bob"
          {code}


          *Original request*
          I use input step like below:
          {code}
          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }
          {code}

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          James Dumay made changes -
          Description Original: *Notes*
          This will work when there is a single approver specified but not when there are multiple. Blue Ocean will respond with a 400 error.

          To run the scenario you will need two users - 'alice' and 'bob'.

          *Scenario 1 - current user is 'alice', single approver*
          This works fine in Blue Ocean
          {code}
          node {
              echo 'hello world'
              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice"
          {code}

          *Scenario 2 - current user is 'alice', multiple approvers*
          {code}
          node {
              echo 'hello world'
              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice, bob"
          {code}


          *Original request*
          I use input step like below:
          {code}
          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }
          {code}

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.
          New: *Notes*
          This will work when there is a single approver specified but not when there are multiple. Blue Ocean will respond with a 400 error. Due to JENKINS-42920 the user will not receive feedback on why they are not allowed to proceed or any other error, which made this problem more confusing.

          To run these scenarios you will need two users - 'alice' and 'bob'.

          *Scenario 1 - current user is 'alice', single approver*
          This works fine in Blue Ocean
          {code}
          node {
              echo 'hello world'
              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice"
          {code}

          *Scenario 2 - current user is 'alice', multiple approvers*
          {code}
          node {
              echo 'hello world'
              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "alice, bob"
          {code}


          *Original request*
          I use input step like below:
          {code}
          timeout(time: 5, unit: "DAYS") \{

              input message: "Do you want to approve this job to deploy to production?", ok: "OK", submitter: "A, B, C"

          }
          {code}

          can not use multi submitter in Blue Ocean UI, but it works fine in the old UI.

            imeredith Ivan Meredith
            hanks hanks justin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: