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

ListSubversionTagsParameterDefinition params-Variable is null

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 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

    Description

      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.

      Attachments

        Activity

          bomm Bodo . added a comment - - edited

          I can confirm that params.<name> is always null, but an environment variable <name> is set to the expected value.

          In my Jenkinsfile I can use variable <name> instead of params.<name>.

          Jenkins 2.346.1

          Subversion plugin 2.16.0

          bomm Bodo . added a comment - - edited I can confirm that params. <name> is always null , but an environment variable <name> is set to the expected value. In my Jenkinsfile I can use variable <name> instead of params. <name> . Jenkins 2.346.1 Subversion plugin 2.16.0

          People

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

            Dates

              Created:
              Updated: