api4jenkins icon indicating copy to clipboard operation
api4jenkins copied to clipboard

Folder description manipulates the All view description

Open weshouman opened this issue 3 years ago • 5 comments

folderJob.description & folderJob.set_description() get and set the All view's description instead of the job folder description.
If we have multiple views, the other views aren't touched.

weshouman avatar Jun 10 '21 08:06 weshouman

yes, it's same in UI. you have to edit the configuration of folder to update description. to update description of other views, you can use view.description and view.set_description('xxx')

joelee2012 avatar Jun 10 '21 09:06 joelee2012

Changing a job's description should literally change the job's description not its All view's description. Otherwise, if one had important details attached to this view's description it would get wiped out.

For the GUI: I actually find changing the Job's description only through an extra view less intuitive, but that's another topic.

weshouman avatar Jun 10 '21 15:06 weshouman

yes, i know, this lib post description to endpoint <jekins url>/job/<some folder>/submitDescription to set description, ideally it should set description for folder, but seems not.

joelee2012 avatar Jun 11 '21 01:06 joelee2012

Indeed, running the following command modifies the All view's description too

curl -s -XPOST 'http:localhost/PATH/TO/JOB/submitDescription' --data "description=New Description" -H "application/x-www-form-urlencoded" -u "USERNAME:PASSWORD"

weshouman avatar Jun 11 '21 06:06 weshouman

yes, that's what i said. maybe the folder plugin should make some change.

joelee2012 avatar Jun 24 '21 01:06 joelee2012