0

I'm trying to make a simple change in my Jenkins build: edit a name of build's description to some other name. (Just for the sake of practice). I'm typing such a command in terminal:

curl -i -X POST -d ""Description":"Some_other_description_name"" \
  "https://My_Login:My_password@jenkins_url/job/job_name/job_number/"

but it doesn't seem to work. Thx in advance

StephenKing
  • 36,187
  • 11
  • 83
  • 112
aleksy.t
  • 267
  • 2
  • 18

1 Answers1

2

There is no api for doing this. But it is possible to update the description with submitting the web form for it:

curl -u $USER:$PASSWORD   --data-urlencode "description=$new_description" \
--data-urlencode "Submit=Submit" \
"$jenkins_url/job/$job_name/$build_number/submitDescription"

Based on the answer of Slav.

If also want to change the build name, have a look for the other answer.

Community
  • 1
  • 1
CSchulz
  • 10,882
  • 11
  • 60
  • 114