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

Change default shell for 'sh' in pipeline

XMLWordPrintable

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

      https://support.cloudbees.com/hc/en-us/articles/215171038

      JENKINS-57321

      sh "..."  allocate default shell and then execute script according to shabang

      But there is no way to change shell for 'sh' statement . And that's an issue.

      It could be useful to overwrite default shell for example with:

      sh "script: 'ls -l' shell: '/bin/sh'"

            Unassigned Unassigned
            grzzie Grzegorz Zieba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: