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

SVN Plugin displays executing update for the correct path but uses last used path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None
    • Windows Server 2008 R2
      Windows7 Slave
      SVN-Plugin 2.6

      The Jenkins Subversion Plug-in works great when using an specific repository URL, but it doesn't work well with parameterized paths.

      Our setup uses a job parameter to specify the SVN branch to use when doing any SVN operations. We currently have three branches: alpha, beta and Trunk. Depending on the order of the builds, the SVN update command fails in this case. We use separate workspace folders for each branch to make sure they are exclusive by using the parameter to select the proper workspace. When running a job with this setup, the job fails for upper branches since they receive updates from the lower branches if the lower branches were executed before.

      Parameter:

      Workspace Setup:

      SVN Plugin Setup:

      Scenario:

      1. Run SVN update for the alpha branch
      2. The Alpha job finishes successfully
      3. Run job for Beta branch
      4. Job runs and displays update for Beta branch
      5. There were no changes for the Beta branch, but changes are downloaded from the main Alpha branch (the latest revision - 37364 shown in the log) 
      6. Beta job fails to build because there are unexpected changes in the Beta branch folder

      Jenkins Log:

      I think the problem is because the SVN plugin is running an update on the wrong path even though it displays the right path in the log.

      e.g. displays beta, but it's really updating alpha since that was the last folder used.

      Just making sure the workspace and the path in the SVN Plugin settings are set correctly before the update should fix it.

        1. SVN Plugin.png
          SVN Plugin.png
          85 kB
        2. SVN Plugin - Log.png
          SVN Plugin - Log.png
          74 kB
        3. SVN Plugin - Parameter.png
          SVN Plugin - Parameter.png
          19 kB
        4. SVN Plugin - WS.png
          SVN Plugin - WS.png
          11 kB

            Unassigned Unassigned
            hsantana29 Hector Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: