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

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None

      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.

          [JENKINS-27210] Ability to add a descriptive text to a shell script execution that gets displayed in the Running Steps perspective

          Nuno Geraldes added a comment -

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

          Nuno Geraldes added a comment - How was this resolved? I would like to make use of this.

          Jesse Glick added a comment -

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

          Jesse Glick added a comment - Wrap anything in stage('some text') {… }.

          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?

          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?

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

              Created:
              Updated:
              Resolved: