• Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Major Major
    • pipeline
    • None

      The `sh` step adds a "Shell Script" step in the Pipeline. However, there could be multiple such steps including steps from various plugins (e.g., Docker), which makes it hard to distinguish the steps. We should perhaps add an optional parameter to sh to specify a name or alias which would then appear in the pipeline steps.

      e.g., the following can be the step for npm which would show as "Shell script: npm" in the pipeline view.

      sh cmd:"npm install", name: "npm"
      

          [JENKINS-36933] Name or alias Shell Script Step (sh)

          Shauvik Roy Choudhary created issue -
          Shauvik Roy Choudhary made changes -
          Summary Original: Name or alias sh Steps New: Name or alias Shell Script Step (sh)
          Shauvik Roy Choudhary made changes -
          Description Original: The `sh` step adds a "Shell Script" step in the Pipeline. However, there could be multiple such steps including steps from various plugins (e.g., Docker), which makes it hard to distinguish the steps. We should perhaps add an optional parameter to sh to specify a name or alias which would then appear in the pipeline steps.

          e.g., the following can be the step for npm which would show as "Shell script: npm" in the pipeline view.
          `sh cmd:"npm install", name: "npm"`

          New: The `sh` step adds a "Shell Script" step in the Pipeline. However, there could be multiple such steps including steps from various plugins (e.g., Docker), which makes it hard to distinguish the steps. We should perhaps add an optional parameter to sh to specify a name or alias which would then appear in the pipeline steps.

          e.g., the following can be the step for npm which would show as "Shell script: npm" in the pipeline view.

          {code:java}
          sh cmd:"npm install", name: "npm"
          {code}

          Shauvik Roy Choudhary made changes -
          Description Original: The `sh` step adds a "Shell Script" step in the Pipeline. However, there could be multiple such steps including steps from various plugins (e.g., Docker), which makes it hard to distinguish the steps. We should perhaps add an optional parameter to sh to specify a name or alias which would then appear in the pipeline steps.

          e.g., the following can be the step for npm which would show as "Shell script: npm" in the pipeline view.

          {code:java}
          sh cmd:"npm install", name: "npm"
          {code}

          New: The `sh` step adds a "Shell Script" step in the Pipeline. However, there could be multiple such steps including steps from various plugins (e.g., Docker), which makes it hard to distinguish the steps. We should perhaps add an optional parameter to sh to specify a name or alias which would then appear in the pipeline steps.

          e.g., the following can be the step for npm which would show as "Shell script: npm" in the pipeline view.
          {code:java}
          sh cmd:"npm install", name: "npm"
          {code}

          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173688 ] New: JNJira + In-Review [ 185285 ]
          Dan Alvizu made changes -
          Component/s New: workflow-plugin [ 18820 ]
          Component/s Original: build-pipeline-plugin [ 15962 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-26107 [ JENKINS-26107 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Kaden Wilkinson made changes -
          Attachment New: Screen Shot 2016-10-03 at 4.13.46 PM.png [ 34228 ]

            Unassigned Unassigned
            shauvik Shauvik Roy Choudhary
            Votes:
            1 Vote for this issue
            Watchers:
            42 Start watching this issue

              Created:
              Updated:
              Resolved: