Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57499

booleanParam will give String variable

    Details

    • Similar Issues:

      Description

      Defining a boolean parameter will not return a boolean value as expected, but a String value.

      Defining the parameter:{{}}

      parameters { booleanParam(name: 'bForceCheckout', defaultValue: false, description: '') }

      Checking the type...

      println bForceCheckout.getClass()
      

      ...will give you:

      09:06:03 class java.lang.String
      

      This of course leads to some nice behaviour when checking the variable in conditions...

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              svanoort Sam Van Oort
              Reporter:
              chrop Christian Opitz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: