I'm wondering how I can add a description to builds in Jenkins by using Python module "requests"
I tried to make a POST request. The status code is 200 but the description is not added.
import requests
import json
url = 'http://localhost:8080/job/IgorModuleA-trunk/301/submitDescription'
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
creds = ('', '')
message = {'description': 'The build is failed'}
r = requests.post(url, data=json.dumps(message), headers=headers, auth=creds)