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

Specify true/false values for boolean parameter

XMLWordPrintable

      We need to parameterize our builds so that the user can specify whether to refresh-dependencies or not, which in gradle-parlor translates to the optional "--refresh-dependencies" parameters.

      It would be really nice if you could specify true/false values for a boolean parameter. We would then create a parameter with true-value set to "--refresh-dependencies" and false-value set to "", and then just use $gradleRefreshDependencies when invoking the gradle script.

      Our current workaround is to create a text parameter with the description "Please add --refresh-dependencies" to refresh dependencies. This is simple enough, of course, but the use case is ideal for boolean parameters.

            Unassigned Unassigned
            elygre elygre
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: