I am setting up a parameterized Jenkins job with pipeline. I need to trim trim parameters any suggestions?
In New version of Jenkins i can able to get the parameters. But I can't modify the parameters. If i use setValue()
, it gives me unsupportedException
.
parameters {
string(defaultValue: "", description: '', name: 'tag or commit', trim: true)
}
Which type of parameter are You using? Is it user input or some kind of choice list? As workaround You can use another variable:
myVar = param1.trim()
then You can use myVar instead o param1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With