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"
      

        1. how_can_i_know.png
          156 kB
          Eloy Lafuente
        2. image-2018-02-15-17-12-01-090.png
          34 kB
          Veaceslav Gaidarji
        3. Screen Shot 2016-10-03 at 4.13.46 PM.png
          25 kB
          Kaden Wilkinson
        4. Screenshot from 2017-03-03 11-48-15.png
          15 kB
          Justin Holmes
        5. Screenshot from 2017-03-03 11-49-10.png
          29 kB
          Justin Holmes

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

              Created:
              Updated:
              Resolved: