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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      hudson 1.415, subversion plugin 1.28
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          josbraaksma Jos Braaksma added a comment -

          could be the same issue

          Show
          josbraaksma Jos Braaksma added a comment - could be the same issue
          Hide
          rseguy 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.

          Show
          rseguy 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.
          Hide
          rseguy Romain Seguy added a comment -

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

          Show
          rseguy Romain Seguy added a comment - This issue (which is not, actually) is not linked to JENKINS-10925 .
          Hide
          rseguy 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.

          Show
          rseguy 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.

            People

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

              Dates

              Created:
              Updated:
              Resolved: