jenkinsci / jenkinsci/subversion-plugin

[JENKINS-45075] SVN Plugin displays executing update for the correct path but uses last used path

Open
#1,429 1 comment 0 reactions 0 assignees View on GitHub
component:subversion-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
131
Forks
275
Avg merge
12h 4m
Merged PRs (30d)
6

Description

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.

---
Originally reported by hsantana29, imported from: SVN Plugin displays executing update for the correct path but uses last used path


  • status: Open
  • priority: Major
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251212-090250

Raw content of original issue

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.

environment

```
Windows Server 2008 R2

Windows7 Slave

SVN-Plugin 2.6
```

4 attachments

- [SVN Plugin - Log.png](https://issues.jenkins.io/secure/attachment/38599/SVN%20Plugin%20-%20Log.png)
> ![SVN Plugin - Log.png](https://issues.jenkins.io/secure/attachment/38599/SVN%20Plugin%20-%20Log.png)
- [SVN Plugin - Parameter.png](https://issues.jenkins.io/secure/attachment/38601/SVN%20Plugin%20-%20Parameter.png)
> ![SVN Plugin - Parameter.png](https://issues.jenkins.io/secure/attachment/38601/SVN%20Plugin%20-%20Parameter.png)
- [SVN Plugin - WS.png](https://issues.jenkins.io/secure/attachment/38602/SVN%20Plugin%20-%20WS.png)
> ![SVN Plugin - WS.png](https://issues.jenkins.io/secure/attachment/38602/SVN%20Plugin%20-%20WS.png)
- [SVN Plugin.png](https://issues.jenkins.io/secure/attachment/38600/SVN%20Plugin.png)
> ![SVN Plugin.png](https://issues.jenkins.io/secure/attachment/38600/SVN%20Plugin.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.