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

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

问题描述

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

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

推荐答案

来自执行 shell"部分的帮助/问号图标:

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.

如果您转到管理 Jenkins --> 配置系统,您将找到一个选项(称为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 使用什么 shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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