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

ListSubversionTagsParameterDefinition params-Variable is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • 64-bit Oracle JVM 1.8.0_221
      Jenkins 2.181
      Subversion plugin 2.12.1
      Pipeline plugin 2.6
      Pipeline: Groovy plugin 2.70

      In my scripted pipeline i use:

      ...
      parameters([[$class: 'ListSubversionTagsParameterDefinition', defaultValue: 'trunk', maxTags: '', name: 'SVN_BRANCH', reverseByDate: true, reverseByName: false, tagsDir: '_http://svnRepo_', tagsFilter: 'trunk|tags/.*|branches/.*'],
      string(defaultValue: 'HEAD', description: '', name: 'REVISION', trim: false)])

      println "Params: ${params}"
      ...

      Everytime the output is:
      [Pipeline] echoParams: [REVISION=HEAD, SVN_BRANCH=null]
      although the defaultValue=trunk.

            Unassigned Unassigned
            peter_wolf Peter Wolf
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: