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

Name or alias Shell Script Step (sh)

XMLWordPrintable

    • 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"
      

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

              Created:
              Updated:
              Resolved: