Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread Al Silver
Below code does not work and just throws an error when I try to run it. I've seen examples of stripIndent but I have not been able to find a working example used inside the parameters block with declarative pipeline... parameters { string(name: 'limit', defaultValue: '',

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread 'Björn Pedersen' via Jenkins Users
Am Montag, 15. Juni 2020 14:45:42 UTC+2 schrieb Al Silver: > > If I remove the spaces/tab at the beginning of the line, I'm left with > "ugly" code that's not maintaining indentations... T > Not remove from the source, but from the assigment value: """ -... - ""..stripIndent()

Re: Multi-line parameter description in declarative pipeline

2020-06-15 Thread Al Silver
If I remove the spaces/tab at the beginning of the line, I'm left with "ugly" code that's not maintaining indentations... Thx On Friday, June 12, 2020 at 10:20:13 PM UTC-4, slide wrote: > > The triple quote strings are taken as is, so just remove the tabs/spaces > at the start of the lines. >

Re: Multi-line parameter description in declarative pipeline

2020-06-12 Thread Slide
The triple quote strings are taken as is, so just remove the tabs/spaces at the start of the lines. On Fri, Jun 12, 2020, 08:29 Al Silver wrote: > Hi, > How can I have a detailed description field that is properly displayed > when building with parameters. The example below is obviously not

Multi-line parameter description in declarative pipeline

2020-06-12 Thread Al Silver
Hi, How can I have a detailed description field that is properly displayed when building with parameters. The example below is obviously not good coding practice parameters { // Optional // string(name: 'isis_thresh', defaultValue: '', description: 'Threshold