返回「计算机、信息技术与工程」

【Jenkins】多节点构建

更多
Markdown 结构化数据
本文目录 1 个章节

【Jenkins】多节点构建

# 【Jenkins】多节点构建

创建时间:2021/7/7 21:40

  • 坑点

坑点

在MacOS子节点上运行shell,报错如下: sh: C:\Program Files\Git\usr\bin\sh.exe: command not found

因为在Jenkins的全局配置中设置了sh的路径,所以在所有节点中都会按照这个路径来调用sh,导致在子结点上运行出错。 在Manage Jenkins -> Configure System中清空配置即可。

Normally you should just leave this field empty and let Jenkins pick up the right shell executable. If your sh (Windows) or /bin/sh binary exists outside your PATH, however, specify the absolute path to the shell executable.