Set/change Branch description in multibranch pipelines

7 views
Skip to first unread message

Michael Lasevich

unread,
Jul 10, 2017, 1:23:07 PM7/10/17
to Jenkins Users
I would like to set "description" field in automatically generated branches in Multibranch Pipeline to add some information like links to latest artifacts, links to latest generated documentation, etc. While I would settle for one standard default description for all the branches, ideally it would be nice to be able to set it from Jenkinsfile - similar to how other branch job properties can be set via "properties" command.  As far as I can tell, you cannot currently do this via "properties" - but I could be wrong. Is there a way to do this using just the pipeline code in Jenkinsfile?

I have tried getting the item from Jenkins directly to manipulate it, but sandboxing (rightfully) blocked me from doing that. I suppose I could write a shared lib function to do that, which would bypass the sandboxing, but I was wondering if there is a more proper way of doing this? I can't imagine I am the only one who wants to do that.

Thanks, 

-M

Reply all
Reply to author
Forward
0 new messages