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

Expand variables in Repository URL based on matrix axis or variable defined with setenv

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • subversion-plugin
    • None
    • hudson 1.415, subversion plugin 1.28

      i have an axis called PROJECT in which i have several values.

      i wanted to compose the url with this axis, something like that

      svn://mysvn/${PROJECT}

      but it does not work: it's not expanded. i tried with all the ways i know:

      ${PROJECT}

      ${env.PROJECT}

      $PROJECT

      %PROJECT

      %PROJECT%

      none of them is expanded

      using setenv did not give me more success, with any of the above ways to call the variable

          [JENKINS-10003] Expand variables in Repository URL based on matrix axis or variable defined with setenv

          Jos Braaksma added a comment -

          could be the same issue

          Jos Braaksma added a comment - could be the same issue

          Romain Seguy added a comment -

          You can't use variables defined in setenv (or any other plugin which allows defining env variables in a job) since they are based on BuildWrappers or BuildSteps which gets performed after SCM is done.

          Romain Seguy added a comment - You can't use variables defined in setenv (or any other plugin which allows defining env variables in a job) since they are based on BuildWrappers or BuildSteps which gets performed after SCM is done.

          Romain Seguy added a comment -

          This issue (which is not, actually) is not linked to JENKINS-10925.

          Romain Seguy added a comment - This issue (which is not, actually) is not linked to JENKINS-10925 .

          Romain Seguy added a comment -

          In a matrix project, Subversion checkout gets performed before the axis are run. So it's of course not possible to resolve a variable which has not yet been created ==> Not a defect.

          Romain Seguy added a comment - In a matrix project, Subversion checkout gets performed before the axis are run. So it's of course not possible to resolve a variable which has not yet been created ==> Not a defect.

            Unassigned Unassigned
            invalidcast j e
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: