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

Add a way to distinguish workflow input steps approvals shown on the build page

    XMLWordPrintable

Details

    Description

      The following workflow code asks the user for 2 approvals:

      parallel (
        A: {
          input id: 'A', message: "Run A"
          node('remote') {
            println("Running A")
          }
        },
        B: {
          input id: 'B', message: "Run B"
          node('remote') {
            println("Running B")
          }
        }
      )
      

      After a user approves both, they are undistinguishable on the Build page, as they say the same thing: "This was approved by user ...". See attached for a picture. This becomes even more useful when one of the input steps is aborted (in fact it would be also useful to see which steps are aborted and by who, without having to look at the console log).

      I would like to be able to distinguish each approval. Using the ID and the message seems appropriate.

      Attachments

        Issue Links

          Activity

            jglick Jesse Glick added a comment -

            Currently ApproverAction records only an userId, not the id (or message) of the InputStep. Would be useful to add. Must handle historical actions which lack this information.

            Rejection similiarly records a userName (and timestamp), but not an input id.

            jglick Jesse Glick added a comment - Currently ApproverAction records only an userId , not the id (or message ) of the InputStep . Would be useful to add. Must handle historical actions which lack this information. Rejection similiarly records a userName (and timestamp ), but not an input id .

            People

              jglick Jesse Glick
              deepchip Martin d'Anjou
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: