Is there a way to prevent the default Jenkins string parameter for the parameter name if it is empty?

I have a string variable in Jenkins that has a default value of an empty string. When I create my work, the value is set to the last part of the parameter name. Thus, our qa-release parameter, which was set to an empty string, now has the value release.

Due to the way our code is written, sometimes I need to send an empty string. We try not to install too many plugins, so I would prefer a solution that would not require this. I tried to set the value as follows, but they all give the above results.

  • ""
  • "" "
  • "''"
  • ""
+7
jenkins
source share
1 answer

If you are talking about String Parameter , in the latest version of Jenkins (but I suppose even earlier) you can leave the parameter field blank when the task starts, and this will result in the empty string value associated with this parameter.

0
source share

All Articles