Jenkins使用什么外壳? [英] What shell does Jenkins use?

查看:90
本文介绍了Jenkins使用什么外壳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jenkins在调用shell命令时使用什么外壳?我在Linux机器上运行Jenkins.

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

推荐答案

从执行外壳"部分的帮助/问号图标:

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

运行以下命令的shell脚本(默认为sh,但这是可配置的) 建立项目.

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

如果转到Manage Jenkins-> Configure System,您将找到一个选项(称为"Shell可执行文件")来设置您要您的Shell脚本使用的Shell的名称或绝对路径...

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...

对于未配置此选项的系统,它使用bash!

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

这篇关于Jenkins使用什么外壳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆