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

Global variables not replaced in repository url

    Details

    • Similar Issues:

      Description

      Hi.

      I would like to use global variables to hold working branch names for my projects so I can write repository urls like the following:

      http://my.svn.host/repos/my-project-1/branches/${my_working_branch}

      Unfortunately, jenkins (version 1.421) did not replace the variables in the repository url field.

      Could you please fix that? That would simplify the project configuration for me.

      Thanks a lot,
      Torsten

        Attachments

          Issue Links

            Activity

            Hide
            kutzi kutzi added a comment -

            You have to update your subversion plugin to 1.28+ https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin

            Show
            kutzi kutzi added a comment - You have to update your subversion plugin to 1.28+ https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin
            Hide
            tmandry Torsten Mandry added a comment -

            Hi.

            I updated my subversion plugin to version 1.29 (Jenkins version 1.421) but variable substitution still doesn't work.

            Using a SVN-URL like 'http://my.svn.host/repos/my-project-1/branches/${my_working_branch}' throws the following error stack:

            Checking out http://my.svn.host/repos/my-project-1/branches/${my_working_branch}
            ERROR: Failed to check out http://my.svn.host/repos/my-project-1/branches/${my_working_branch}
            org.tmatesoft.svn.core.SVNException: svn: URL 'http://my.svn.host/repos/my-project-1/branches/$%7Bmy_working_branch%7D' doesn't exist
            at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
            at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
            at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:910)
            at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:83)
            at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:135)
            at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:747)
            at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:728)
            at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:712)
            at hudson.FilePath.act(FilePath.java:758)
            at hudson.FilePath.act(FilePath.java:740)
            at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:705)
            at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:654)
            at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
            at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555)
            at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443)
            at hudson.model.Run.run(Run.java:1376)
            at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:175)
            Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: URL 'http://my.svn.host/repos/my-project-1/branches/$%7Bmy_working_branch%7D' doesn't exist
            at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:163)
            at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:118)
            at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:909)
            ... 16 more

            Is there something wrong with my configuration?

            Regards,
            Torsten

            Show
            tmandry Torsten Mandry added a comment - Hi. I updated my subversion plugin to version 1.29 (Jenkins version 1.421) but variable substitution still doesn't work. Using a SVN-URL like 'http://my.svn.host/repos/my-project-1/branches/${my_working_branch}' throws the following error stack: Checking out http://my.svn.host/repos/my-project-1/branches/$ {my_working_branch} ERROR: Failed to check out http://my.svn.host/repos/my-project-1/branches/$ {my_working_branch} org.tmatesoft.svn.core.SVNException: svn: URL 'http://my.svn.host/repos/my-project-1/branches/$%7Bmy_working_branch%7D' doesn't exist at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:910) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:83) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:135) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:747) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:728) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:712) at hudson.FilePath.act(FilePath.java:758) at hudson.FilePath.act(FilePath.java:740) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:705) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:654) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175) Caused by: org.tmatesoft.svn.core.SVNErrorMessage: svn: URL 'http://my.svn.host/repos/my-project-1/branches/$%7Bmy_working_branch%7D' doesn't exist at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:163) at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:118) at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:909) ... 16 more Is there something wrong with my configuration? Regards, Torsten

              People

              • Assignee:
                Unassigned
                Reporter:
                tmandry Torsten Mandry
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: