Jenkins · Arazzo Workflow
Jenkins Trigger a Parameterized Build and Await the Result
Version 1.0.0
Submit build parameters to a parameterized job, confirm it queued, and poll until it finishes.
View Spec
View on GitHub
AutomationBuild ServerCI/CDContinuous DeliveryContinuous IntegrationDevOpsOpen SourceRemote Access APIArazzoWorkflows
Provider
Workflows
trigger-parameterized-build
Run a parameterized Jenkins job with supplied values and wait for the result.
Reads the job, posts the supplied parameters to the buildWithParameters endpoint, confirms the queue accepted the request, and polls the build until building is false. The parameter names supplied must match the parameter definitions configured on the job.
1
resolveJob
getJob
Read the job to confirm it exists and is buildable, and to capture the number the next build will be assigned.
2
submitParameters
triggerBuildWithParameters
Trigger the job with the supplied parameter values, form-encoded as Jenkins expects. Jenkins responds 201 with a Location header pointing at the created queue item.
3
inspectQueue
getQueue
Read the build queue to confirm the parameterized trigger was accepted and to see whether the build is still waiting for an executor.
4
awaitBuild
getBuild
Poll the build resource until it reports it is no longer building, then capture the final result and the parameters the build actually ran with.