---
title: "【Jenkins】多节点构建"
author: "Perrin Yong"
author_profile: https://www.pystone.net/profile/
published_by: "Perrin Yong"
canonical: https://www.pystone.net/notes/jenkins-multi-node-build/
type: note
content_role: unspecified
visibility: public
id_stability: rename-stable
source_path: "10-计算机、信息技术与工程/03-软件工程与质量保障/CI-CD与质量保障/CI-CD工具链/【Jenkins】多节点构建.md"
content_hash: 47699265bf1e68b2a593ac3ba9d1c752765cd9648526ae228f92fac1b13ddde3
knowledge_version: 224c990773de.5fa8af6e39fa
site_commit: 224c990773de166d23a886306577dd90379529ce
notes_commit: 5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a
---
# 【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.
