sagent ¶
agent 指定运行节点等相关信息
pipeline {
agent { // 代理节点
node {
label "master" // 指定运行节点的标签或名称
customWorkspace "{workspace}" // 指定运行工作目录 (按需使用)
}
}
参数:
- any:在任何可用的节点执行 pipline
- none:没有指定 agent 的时候默认
- label:在指定标签或名称的节点上运行 pipline
- node:额外的选项