[JIRA] (JENKINS-59272) Change default shell for 'sh' in pipeline

2 views
Skip to first unread message

grzegorz.zieba.ext@gigaset.com (JIRA)

unread,
Sep 8, 2019, 7:04:03 AM9/8/19
to jenkinsc...@googlegroups.com
Grzegorz Zieba created an issue
 
Jenkins / Improvement JENKINS-59272
Change default shell for 'sh' in pipeline
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: pipeline
Created: 2019-09-08 11:03
Priority: Minor Minor
Reporter: Grzegorz Zieba

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'"
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages