部署分支到 Job
deployDeploy a branch to a Jenkins job by modifying its branch spec and triggering a build; blocks concurrent builds, allows same-branch redeployment, and prevents overwriting successful deployments unless forced.
Instructions
修改 BranchSpec 并触发构建。并发构建会硬拦截;同一实际部署分支可直接重部署,切换分支时基于最近成功部署 SHA 防覆盖。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | Jenkins Job 精确名称(可先用 find_job 定位) | |
| force | No | 仅在用户明确同意覆盖未合并或无法确认的成功部署版本后传 true | |
| branch | Yes | 要部署的目标分支名 |