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

Ability to add a descriptive text to a shell script execution that gets displayed in the Running Steps perspective

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      When working with a workflow that has many shell scripts it is very hard to see in the "Runnning Steps" perspective what each of them does to identify the one that one is looking for.

      It would be great to be able to drive the display of Shell Scripts in this perspective by either providing a text or possibly displaying the shell command executed.

        Attachments

          Issue Links

            Activity

            Hide
            npassosg Nuno Geraldes added a comment -

            How was this resolved? I would like to make use of this.

            Show
            npassosg Nuno Geraldes added a comment - How was this resolved? I would like to make use of this.
            Hide
            jglick Jesse Glick added a comment -

            Wrap anything in stage('some text') {…}.

            Show
            jglick Jesse Glick added a comment - Wrap anything in stage('some text') {… }.
            Hide
            npassosg Nuno Geraldes added a comment -

            I'm using stage, but stage cannot be used inside parallel execution code.
            I'm running tests in multiple environments in parallel. Each test is a shell script command.
            In order to find the test log I'm looking for in the Pipeline Steps view I need to go through the list of all the commands, which is far from ideal.
            Ideally, I would like to have the ability to associate a shell script command with a description that would be shown in the Pipeline Steps view. For example:
            sh "execute/this/command", description: "Test case x"
            That would display "Shell Script - Test case x" in the Pipeline Steps view.

            If this is too hard to achieve, I would settle with seeing the shell script command ("Shell Script - execute/this/command") instead of what I see now, which is "Shell Script", which is really not informative of the step.

            Is there anything like this?

            Show
            npassosg Nuno Geraldes added a comment - I'm using stage, but stage cannot be used inside parallel execution code. I'm running tests in multiple environments in parallel. Each test is a shell script command. In order to find the test log I'm looking for in the Pipeline Steps view I need to go through the list of all the commands, which is far from ideal. Ideally, I would like to have the ability to associate a shell script command with a description that would be shown in the Pipeline Steps view. For example: sh "execute/this/command", description: "Test case x" That would display "Shell Script - Test case x" in the Pipeline Steps view. If this is too hard to achieve, I would settle with seeing the shell script command ("Shell Script - execute/this/command") instead of what I see now, which is "Shell Script", which is really not informative of the step. Is there anything like this?

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                nexus49 Bastian Echterhoelter
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: