curl -u $USER:$PASSWORD --data-urlencode "description=$new_description" \ --data-urlencode "Submit=Submit" \ "$jenkins_url/job/$job_name/$build_number/submitDescription"
It submits form data to "$jenkins_url/job/$job_name/$build_number/submitDescription"
Essentially, it emulates a user manually navigating to the assembly page by clicking the "Edit Description" link, entering a description, and clicking the "Submit" button. This is one way to do this.
You can also do this from CLI Jenkins.
Go to: http://localhost:8080/cli/command/set-build-description for reference.
If you have jenkins-cli.jar , you can run the following from the command line:
java -jar jenkins-cli.jar -s http://localhost:8080/ set-build-description <BUILD_NAME> <BUILD_NUMBER> YOUR-DESCRIPTION
source share