All languages

Python for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists Sometimes the thing that needs to start a Jenkins job isn't another Jenkins job — it's a script reacting to an external event, a scheduled task, or a small internal tool. Jenkins' REST API supports this…

Trigger a Jenkins Job via the REST API

Triggers a parameterised Jenkins job over its REST API and, optionally, blocks until the build finishes and returns its result — for kicking off a downstream pipeline from outside Jenkins itself.

Sign in free to read this script, along with the rest of the library.

Sign in free