HTTPBasicAuth authentication
After authentication is that some action must be logged in have permission to operate, in order to build the project after such jenkins must be logged in with the authentication mode jenkins is basic_auth, specific use as follows:
- 导入 from requests.auth import HTTPBasicAuth
- requests.post (url, data = {}, auth = ( 'username', 'password'))