Jenkinsfile 流水线 教程:Jenkins 教程 更新时间:2026-12-02 阅读:212 声明式流水线用 pipeline、stage、steps 描述流程。本节要点agent 指定执行节点stage 划分阶段sh 执行 Shell 命令代码示例pipeline { agent any stages { stage("Build") { steps { sh "npm install" sh "npm run build" } } } } 上一篇入门与安装 下一篇构建与测试