jenkinsci / jenkinsci/subversion-plugin

[JENKINS-28525] Subversion plugin doesn't do cleanup

Open
#1,272 0 comments 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

I had an issue quite a few time that checkout has been broken (interrupted during update, etc.)

To fix it it's sufficient to do 'svn cleanup'. However subversion-plugin doesn't support it.

In case of a broken checkout poll-scm triggers a new build

```
https://repo/svn/project/trunk is at revision 3,211
(changed from 3,210)

```

but SVN doesn't update this repository:

```
Fetching 'https://repo/svn/project/trunk' at -1 into 'D:\Jenkins\jobs\Project\workspace\project'

```

When I went to the host and than do 'svn up' it complains :

```
14:06:28 Fetching external item into 'project':
14:06:28 svn: warning: W155037: Previous operation has not finished; run 'cleanup' if it was interrupted

```

With mentioned 'cleanup' option it would be possible to avoid such a situation. An additional issue is that subversion-plugin doesn't show information about W155037, so build is trigger but without information that repository hasn't been updated.

---
Originally reported by pawelgrz, imported from: Subversion plugin doesn't do cleanup


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

Raw content of original issue

I had an issue quite a few time that checkout has been broken (interrupted during update, etc.)
To fix it it's sufficient to do 'svn cleanup'. However subversion-plugin doesn't support it.
In case of a broken checkout poll-scm triggers a new build



https://repo/svn/project/trunk is at revision 3,211

(changed from 3,210)


but SVN doesn't update this repository:



Fetching 'https://repo/svn/project/trunk' at -1 into 'D:\Jenkins\jobs\Project\workspace\project'


When I went to the host and than do 'svn up' it complains :



14:06:28 Fetching external item into 'project':

14:06:28 svn: warning: W155037: Previous operation has not finished; run 'cleanup' if it was interrupted

With mentioned 'cleanup' option it would be possible to avoid such a situation. An additional issue is that subversion-plugin doesn't show information about W155037, so build is trigger but without information that repository hasn't been updated.

environment

```
subversion-plugin: 2.5

Jenkins: 1.609

OS: Windows Server 2013 R2
```

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.