What shell does Jenkins use?

后端 未结 5 1991
失恋的感觉
失恋的感觉 2020-12-09 07:05

What shell is used in Jenkins when calling the shell command? I\'m running Jenkins on a Linux machine.

5条回答
  •  佛祖请我去吃肉
    2020-12-09 08:01

    From the help/question mark icon of the "Execute shell" section:

    Runs a shell script (defaults to sh, but this is configurable) for building the project.

    If you go to Manage Jenkins --> Configure System you will find an option (called "Shell executable") to set the name or absolute path to the shell that you want your shell scripts to use...

    For my system without configuring this option... it uses bash!

提交回复
热议问题