Created
October 28, 2014 12:48
-
-
Save toast38coza/eb5bd76a0a049e385aab to your computer and use it in GitHub Desktop.
Calling Jenkins' API with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| url = 'http://jenkins.mycompany.com/api/json' | |
| username = '..' | |
| token = '..' | |
| response = requests.get(url, auth=HTTPBasicAuth(username, token)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment