Not quite sure what you want to do, but we modify currentBuild.displayName and currentBuild.description from within our pipeline. They are documented under Pipeline Syntax | Global Variable Reference
/Andreas -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bbf0bdca-3bd6-4e4d-a163-7e282fa25336%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.