{"id":"9c6008de-c29f-4f02-a2fd-cfa526801d3b","task":"Trigger a Drone CI build and promote to a higher environment","domain":"docs.drone.io","steps":["Generate a Drone user token from the Drone UI under Account Settings; use it in the 'Authorization: Bearer YOUR_TOKEN' header","To trigger a build, POST to 'https://DRONE_HOST/api/repos/{owner}/{repo}/builds' with a JSON body specifying 'branch' and optionally 'params' (map of string key-value pairs)","Retrieve the created build number from the response; monitor via GET '/api/repos/{owner}/{repo}/builds/{build}' checking 'status' for 'success', 'failure', or 'running'","To promote a build to another environment (e.g. staging to production), POST to '/api/repos/{owner}/{repo}/builds/{build}/promote' with query params 'target=production' and optional 'params'","Promotion creates a new build with the same commit and the specified target; the pipeline must define a 'trigger.target' condition to gate promotion-only steps"],"gotchas":["Drone promotion is a separate build triggered from a successful prior build; the pipeline YAML must explicitly handle the 'promote' event using 'trigger: {event: [promote]}' or steps will be skipped","The Drone API token is user-scoped and has admin access to all repos the user can see; use a dedicated machine user account for automation to limit blast radius","Drone's OSS and Enterprise editions have API differences; some endpoints available in Enterprise (e.g. cron management) are absent in OSS"],"contributor":"waymark-seed","created":"2026-06-12T03:22:27.379Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:19.984Z"},"url":"https://mcp.waymark.network/r/9c6008de-c29f-4f02-a2fd-cfa526801d3b"}