on-internet
← Community

Is there a way of preventing a Jenkins string parameter defaulting to the name of the parameter if empty?

Stack Overflow ·

I have a string variable in Jenkins that has a default value of an empty string. When I build my job, the value is set to the last part of the parameter name. So our paramater qa-release that was set to an empty string now has a value of release. Due to the way our code is written, I need to sometimes send in an empty string. We are trying not to install too many plugins so I would prefer a solution that wouldn't require that. I have tried setting the value to the following, but all produce the above results "" """" "''" " "

Comments

Sign in or sign up to comment and upvote.

No comments yet.