jenkinsci / jenkinsci/subversion-plugin

[JENKINS-62194] SVN commit hook not triggering builds on some new build jobs

Open
#1,532 2 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

Since at least a week ago, some newly created build jobs on our Jenkins do not get triggered by our Subversion's post-commit notification. It has worked reliably for all new jobs before that. Existing jobs do not seem to be affected. Some newly created build jobs work fine as well.

The affected build jobs are Pipelines with "Pipeline Script from SCM". Their SVN polling behavior is set to "@​monthly". The notification definitely arrives, but Jenkins apparently can't find any matching builds, see the following log snippet:

 

```
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
Change reported to Subversion repository 2014c15a-19c3-4144-bd3a-3a8116d50215 on [personal/kloster/MyProject/SomeFile]
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
Starting subversion locations checks for all jobs
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
Ended subversion locations checks for all jobs
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
No jobs found matching the modified files

```

At the time of this log entry, there was a job configured with the SVN URL ending in personal/kloster/MyProject.

Sometimes but not always, changing the SVN URL of the affected build job or manually triggering apoll by appending "/polling" to its URL will "repair" the job, making it react to the commit hook properly.

Any advice on how to further investigate the root cause?

 

---
Originally reported by bkloster_sma, imported from: SVN commit hook not triggering builds on some new build jobs


  • status: Open
  • priority: Minor
  • component(s): subversion-plugin
  • label(s): commit-hook, subversion-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20251212-090250

Raw content of original issue

Since at least a week ago, some newly created build jobs on our Jenkins do not get triggered by our Subversion's post-commit notification. It has worked reliably for all new jobs before that. Existing jobs do not seem to be affected. Some newly created build jobs work fine as well.

The affected build jobs are Pipelines with "Pipeline Script from SCM". Their SVN polling behavior is set to "@monthly". The notification definitely arrives, but Jenkins apparently can't find any matching builds, see the following log snippet:

 



May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus

Change reported to Subversion repository 2014c15a-19c3-4144-bd3a-3a8116d50215 on [personal/kloster/MyProject/SomeFile]
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
Starting subversion locations checks for all jobs
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
Ended subversion locations checks for all jobs
May 05, 2020 7:12:27 AM FINE hudson.scm.SubversionRepositoryStatus
No jobs found matching the modified files


At the time of this log entry, there was a job configured with the SVN URL ending in personal/kloster/MyProject.

Sometimes but not always, changing the SVN URL of the affected build job or manually triggering apoll by appending "/polling" to its URL will "repair" the job, making it react to the commit hook properly.

Any advice on how to further investigate the root cause?

 

environment

```
Jenkins 2.234

subversion Plugin 2.13.0, 2.13.1
```

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.