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

List Subversion Tags parameter not available in workflow

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using the "List Subversion tags (and more)" parameter type will not expose the parameter as a Groovy variable in a workflow.
      The "Parameters" page shows two parameters "Repository URL" and "Tag" after a run. But the parameter name I used was SVNTAG.
      Building inside a free style project seems to works: SVNTAG is defined in the environment. But the parameters page also shows "Repository URL" and "Tag", not the configured name.

      Other parameter types (e.g. Extended Choice Parameter) will be shown correctly on the Parameters page and work together with the workflow plug in.

        Attachments

          Issue Links

            Activity

            Hide
            julrich Jochen Ulrich added a comment -

            I'm experiencing a similar issue but with an inheritance project:
            I cannot use the specified parameter name "SVN_BRANCH" to trigger the project from another project. It falls back to the default value.
            The "Build with Parameters" pages shows the correct name for the parameter but the "Parameter" page displays "Tag" and "Repository URL".

            Show
            julrich Jochen Ulrich added a comment - I'm experiencing a similar issue but with an inheritance project: I cannot use the specified parameter name "SVN_BRANCH" to trigger the project from another project. It falls back to the default value. The "Build with Parameters" pages shows the correct name for the parameter but the "Parameter" page displays "Tag" and "Repository URL".
            Hide
            gordin Christoph Vogtländer added a comment - - edited

            It seems that parameters of type ListSubversionTagsParameterValue are not recorded as a groovy variable in a workflow run automatically. But it is possible to get access to the two embedded values "tag" and "tagsDir" using the following code inside a workflow run (assuming the parameter is named "SVNTAG"):

            def SVNTAG = currentBuild.rawBuild.getAction(hudson.model.ParametersAction).getParameter("SVNTAG")
            println("Tag: ${SVNTAG.tag}, URL: ${SVNTAG.tagsDir}")
            
            Show
            gordin Christoph Vogtländer added a comment - - edited It seems that parameters of type ListSubversionTagsParameterValue are not recorded as a groovy variable in a workflow run automatically. But it is possible to get access to the two embedded values "tag" and "tagsDir" using the following code inside a workflow run (assuming the parameter is named "SVNTAG"): def SVNTAG = currentBuild.rawBuild.getAction(hudson.model.ParametersAction).getParameter( "SVNTAG" ) println( "Tag: ${SVNTAG.tag}, URL: ${SVNTAG.tagsDir}" )

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gordin Christoph Vogtländer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: