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

Build parameter for "List Subversion Tags (and more)" is not exposed to workflow script.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
    • Environment:
      org.jenkins-ci.main:jenkins-war:1.599
      workflow plugin:1.3-SNAPSHOT (private-02/10/2015 ...)
    • Similar Issues:

      Description

      Scenario: A parametrized workflow job with a

      • "Text-Parameter" -> $TEST_TEXT
      • "List Subversion Tags (and more)" parameter -> $TEST_SVN

      Example:

      node {
        echo "$TEST_TEXT"
        echo "$TEST_SVN"
      }
      

      Expected outcome:
      [...]
      Running: Print Message
      test
      Running: Print Message
      my-svn-tag-name
      [...]

      Exception: groovy.lang.MissingPropertyException: No such property: TEST_SVN for class: WorkflowScript

      Workaround: using another Text-Parameter

        Attachments

          Issue Links

            Activity

            ckaltenbach Christian Kaltenbach created issue -
            ckaltenbach Christian Kaltenbach made changes -
            Field Original Value New Value
            Labels subversion workflow workflow
            Hide
            jglick Jesse Glick added a comment -

            ListSubversionTagsParameterValue needs to be updated to override buildEnvironment rather than the now-deprecated buildEnvVars.

            Show
            jglick Jesse Glick added a comment - ListSubversionTagsParameterValue needs to be updated to override buildEnvironment rather than the now-deprecated buildEnvVars .
            jglick Jesse Glick made changes -
            Component/s subversion-plugin [ 15485 ]
            Component/s workflow-plugin [ 18820 ]
            Priority Minor [ 4 ] Major [ 3 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/1a41151afbc886cc0cf0bf344871536253b594b3
            Log:
            JENKINS-27718 Noting.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/1a41151afbc886cc0cf0bf344871536253b594b3 Log: JENKINS-27718 Noting.
            Hide
            jshapiro Josh Shapiro added a comment -

            Did this ever get fixed? If not, does anyone know a work around?
            Thanks,
            Josh

            Show
            jshapiro Josh Shapiro added a comment - Did this ever get fixed? If not, does anyone know a work around? Thanks, Josh
            Hide
            jglick Jesse Glick added a comment -

            The issue remains open so I assume nothing has changed.

            Show
            jglick Jesse Glick added a comment - The issue remains open so I assume nothing has changed.
            Hide
            recena Manuel Recena Soto added a comment -

            Before to do this, I'd like to do the source code compatible (compile time) with Jenkins 1.580+

            Show
            recena Manuel Recena Soto added a comment - Before to do this, I'd like to do the source code compatible (compile time) with Jenkins 1.580+
            Hide
            jshapiro Josh Shapiro added a comment -

            Thanks for your guys' responses. If anyone else stumbles into this, a simple and inelegant workaround until this is resolved is use an upstream job which uses the subversion plugin for it's ability to poll the repository, converts desired values into string parameters, and then calls the workflow using the converted values.

            Show
            jshapiro Josh Shapiro added a comment - Thanks for your guys' responses. If anyone else stumbles into this, a simple and inelegant workaround until this is resolved is use an upstream job which uses the subversion plugin for it's ability to poll the repository, converts desired values into string parameters, and then calls the workflow using the converted values.
            rodrigc Craig Rodrigues made changes -
            Link This issue is related to JENKINS-32209 [ JENKINS-32209 ]
            rodrigc Craig Rodrigues made changes -
            Link This issue is duplicated by JENKINS-27248 [ JENKINS-27248 ]
            rodrigc Craig Rodrigues made changes -
            Assignee Jesse Glick [ jglick ] Manuel Jesús Recena Soto [ recena ]
            Show
            rodrigc Craig Rodrigues added a comment - Manuel Recena Soto Please look at https://github.com/jenkinsci/subversion-plugin/pull/151
            Hide
            recena Manuel Recena Soto added a comment -
            Show
            recena Manuel Recena Soto added a comment - Craig Rodrigues Sure.
            recena Manuel Recena Soto made changes -
            Assignee Manuel Jesús Recena Soto [ recena ] Craig Rodrigues [ rodrigc ]
            recena Manuel Recena Soto made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            recena Manuel Recena Soto made changes -
            Remote Link This issue links to "PR (Web Link)" [ 13715 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Craig Rodrigues
            Path:
            src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java
            http://jenkins-ci.org/commit/subversion-plugin/e41bc73b66951f21e16dd962888820b1b14b027f
            Log:
            JENKINS-27718 Override ParameterValue.buildEnvironment()

            ParameterValue.buildEnvVars() was deprecated. This fix is needed
            for the workflow plugin.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Craig Rodrigues Path: src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java http://jenkins-ci.org/commit/subversion-plugin/e41bc73b66951f21e16dd962888820b1b14b027f Log: JENKINS-27718 Override ParameterValue.buildEnvironment() ParameterValue.buildEnvVars() was deprecated. This fix is needed for the workflow plugin.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Manuel Recena
            Path:
            src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java
            http://jenkins-ci.org/commit/subversion-plugin/05aa7fc9b93c2cd6cef958a5b87603f8245e9ce8
            Log:
            Merge pull request #151 from rodrigc/JENKINS-27718

            JENKINS-27718 Override ParameterValue.buildEnvironment()

            Compare: https://github.com/jenkinsci/subversion-plugin/compare/910139260fbc...05aa7fc9b93c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterValue.java http://jenkins-ci.org/commit/subversion-plugin/05aa7fc9b93c2cd6cef958a5b87603f8245e9ce8 Log: Merge pull request #151 from rodrigc/ JENKINS-27718 JENKINS-27718 Override ParameterValue.buildEnvironment() Compare: https://github.com/jenkinsci/subversion-plugin/compare/910139260fbc...05aa7fc9b93c
            recena Manuel Recena Soto made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Manuel Recena
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/54200ce3e4a9356f85e494ef24938a3a6828e0c6
            Log:
            JENKINS-27718 Noting

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/54200ce3e4a9356f85e494ef24938a3a6828e0c6 Log: JENKINS-27718 Noting
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/a9aa87c1b4c60aebdf1c05cc822899325b828023
            Log:
            Merge pull request #286 from recena/master

            JENKINS-27718 Noting

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/958e6e70ce8c...a9aa87c1b4c6

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/a9aa87c1b4c60aebdf1c05cc822899325b828023 Log: Merge pull request #286 from recena/master JENKINS-27718 Noting Compare: https://github.com/jenkinsci/workflow-plugin/compare/958e6e70ce8c...a9aa87c1b4c6
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 162032 ] JNJira + In-Review [ 196921 ]
            abayer Andrew Bayer made changes -
            Labels workflow pipeline workflow
            abayer Andrew Bayer made changes -
            Labels pipeline workflow pipeline

              People

              Assignee:
              rodrigc Craig Rodrigues
              Reporter:
              ckaltenbach Christian Kaltenbach
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: