Skip to content

Instantly share code, notes, and snippets.

@andykuszyk
Created June 7, 2017 16:25
Show Gist options
  • Save andykuszyk/ac8613cea39b4c0db812dac3c01fef73 to your computer and use it in GitHub Desktop.
Save andykuszyk/ac8613cea39b4c0db812dac3c01fef73 to your computer and use it in GitHub Desktop.
jenkins-api-python
import requests
requests.post('http://{}/job/{}/buildWithParameters?{}={}'.format(
jenkins_url,
job_name,
parameter_name,
parameter_value
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment