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

Name or alias Shell Script Step (sh)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      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"
      

        Attachments

          Issue Links

            Activity

            shauvik Shauvik Roy Choudhary created issue -
            shauvik Shauvik Roy Choudhary made changes -
            Field Original Value New Value
            Summary Name or alias sh Steps Name or alias Shell Script Step (sh)
            shauvik Shauvik Roy Choudhary made changes -
            Description 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"`

            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 Shauvik Roy Choudhary made changes -
            Description 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}

            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}

            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 173688 ] JNJira + In-Review [ 185285 ]
            dalvizu Dan Alvizu made changes -
            Component/s workflow-plugin [ 18820 ]
            Component/s build-pipeline-plugin [ 15962 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-26107 [ JENKINS-26107 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            kdawgwilk Kaden Wilkinson made changes -
            clementgautier Clement Gautier made changes -
            Resolution Duplicate [ 3 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Not A Defect [ 7 ]
            stronk7 Eloy Lafuente made changes -
            Attachment how_can_i_know.png [ 35994 ]
            sherl0cks Justin Holmes made changes -
            sherl0cks Justin Holmes made changes -
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-37324 [ JENKINS-37324 ]
            vgaidarji Veaceslav Gaidarji made changes -
            Attachment image-2018-02-15-17-12-01-090.png [ 41480 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: