Hi Jakub, Custom captions (or more accurately, custom step argument descriptions) are supported on a per-Step type basis, so if your plugin is defining a new Step type, you can define how to display its inputs. There isn't anything coming immediately to allow you to customize captions individually -- though there is a future enhancement to allow attaching metadata to a step that might be displayed in some fashion. But I assume that would be in addition to the caption, not in place of it. Apologies for any confusion from the demos.
Cheers, Sam On Tuesday, July 11, 2017 at 3:51:55 AM UTC-4, Jakub Pawlinski wrote: > > Hi, > > Recently https://issues.jenkins-ci.org/browse/JENKINS-37324 was solved. > > In sprint review Sam Van Oort > <https://issues.jenkins-ci.org/secure/ViewProfile.jspa?name=svanoort> > demonstrated > the foundation for this https://www.youtube.com/watch?v=HhiUY70RVJY&t=510 > > He mentions there possibility of having custom caption but I have found no > way to actually achieve it. > > Maybe you know how I could make a custom description of step in > declarative pipeline, far too simple example: > > stages { > stage('A') { > steps { > bat "@echo Hello World" > > } > } > } > > > How can I make it appear as "Hello World Step — Windows Batch Script" > instead of "@echo Hello World — Windows Batch Script" that I'm getting now. > > > Thanks > > Jakub > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e3a99fdb-d38b-4140-b035-c85a97a7b217%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
