{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/jenkins-multi-node-build/",
  "atlas": "https://www.pystone.net/?node=jenkins-multi-node-build#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/jenkins-multi-node-build.md",
  "context": "https://www.pystone.net/notes/jenkins-multi-node-build.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:jenkins-multi-node-build",
  "slug": "jenkins-multi-node-build",
  "title": "【Jenkins】多节点构建",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "【Jenkins】多节点构建",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "47699265bf1e68b2a593ac3ba9d1c752765cd9648526ae228f92fac1b13ddde3",
  "assets": [],
  "headings": [
    {
      "depth": 1,
      "text": "【Jenkins】多节点构建",
      "anchor": "jenkins多节点构建",
      "citation": "https://www.pystone.net/notes/jenkins-multi-node-build/#jenkins%E5%A4%9A%E8%8A%82%E7%82%B9%E6%9E%84%E5%BB%BA"
    },
    {
      "depth": 2,
      "text": "坑点",
      "anchor": "坑点",
      "citation": "https://www.pystone.net/notes/jenkins-multi-node-build/#%E5%9D%91%E7%82%B9"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:software-engineering-and-quality",
      "title": "软件工程与质量保障",
      "url": "https://www.pystone.net/notes/software-engineering-and-quality/",
      "atlas": "https://www.pystone.net/?node=software-engineering-and-quality#knowledge-atlas",
      "label": "软件工程与质量保障",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "CI-CD与质量保障/CI-CD工具链中的“【Jenkins】多节点构建”导航项",
      "citation": "https://www.pystone.net/notes/software-engineering-and-quality/#ci-cd%E4%B8%8E%E8%B4%A8%E9%87%8F%E4%BF%9D%E9%9A%9Cci-cd%E5%B7%A5%E5%85%B7%E9%93%BE"
    }
  ],
  "contentMarkdown": "# 【Jenkins】多节点构建\n\n﻿# 【Jenkins】多节点构建\n\n> 创建时间：2021/7/7 21:40\n\n* 坑点\n\n## 坑点\n\n在MacOS子节点上运行shell，报错如下：\nsh: C:\\Program Files\\Git\\usr\\bin\\sh.exe: command not found\n\n因为在Jenkins的全局配置中设置了sh的路径，所以在所有节点中都会按照这个路径来调用sh，导致在子结点上运行出错。\n在Manage Jenkins -> Configure System中清空配置即可。\n\n> 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.\n"
}
