jenkinsci / jenkinsci/subversion-plugin

[JENKINS-34236] SVN polls wrong URL if it includes a build parameter

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

Description

If a build parameter with default value is used in a SVN URL and the build should be started by changes in the SVN repository, a wrong URL is used for polling. The parameter used for the polling URL seems to be the parameter used in the last build and not the default parameter.

This is my URL in the Job config:

https://xxx/svn/repos/zzz/source/${BRANCH}

BRANCH is a job parameter and its default value is trunk

Expected result:

The URL used for polling the SVN repository should be constructed by using the default value of the parameter

https://xxx/svn/repos/zzz/source/trunk

Actual result:

The URL used for polling the SVN repository uses the parameter used in the last build.

https://xxx/svn/repos/zzz/source/tags/yyy

Then the poll does not see any changes (confirmed by https://xxx/job/zzz/scmPollLog/) and no build is started.

---
Originally reported by jherb, imported from: SVN polls wrong URL if it includes a build parameter


  • status: Open
  • priority: Minor
  • component(s): subversion-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 6
  • imported: 20251212-090250

Raw content of original issue

If a build parameter with default value is used in a SVN URL and the build should be started by changes in the SVN repository, a wrong URL is used for polling. The parameter used for the polling URL seems to be the parameter used in the last build and not the default parameter.

This is my URL in the Job config:


https://xxx/svn/repos/zzz/source/${BRANCH}


BRANCH is a job parameter and its default value is trunk

Expected result:
The URL used for polling the SVN repository should be constructed by using the default value of the parameter
https://xxx/svn/repos/zzz/source/trunk

Actual result:
The URL used for polling the SVN repository uses the parameter used in the last build.
https://xxx/svn/repos/zzz/source/tags/yyy

Then the poll does not see any changes (confirmed by https://xxx/job/zzz/scmPollLog/) and no build is started.


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.