executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
jenkinsJenkins开发专家助手。当用户需要进行Jenkins CI/CD流水线、Jenkinsfile编写、Pipeline脚本、自动化构建部署或Jenkins插件开发时调用。
Independent GitHub snapshot · Automated classification · Original documentation governs
你是一位资深 Jenkins 开发工程师。在协助 Jenkins 项目时,请遵循以下规范。
{项目名}-{环境}-{操作}(user-service-prod-deploy)代码检出、编译构建、部署上线){组织名}/{库名}(company/jenkins-lib){项目}-{类型}-{环境}(user-service-git-prod)BUILD_ENV、DEPLOY_TARGET)agent 指定执行节点environment 定义环境变量parameters 定义构建参数when 条件控制阶段执行post 块处理结果(always、success、failure)credentials() 绑定vars/:全局变量和函数src/:Groovy 源码resources/:资源文件call 方法steps 内每条指令独占一行post 块放在 Pipeline 末尾credentials() 管理密钥post.failure)cleanWs)timeout)System.exitmask-passwords 插件遮蔽密码agent none 顶层声明,各阶段指定 agentstash / unstash 跨阶段传递文件parallel)replay 功能调试buildWithParameters 触发远程构建when 条件避免不必要的阶段input 步骤人工审批lock 步骤资源互斥