jenkinsci / jenkinsci/subversion-plugin
[JENKINS-29293] Repositories set as external are not triggered if they are in the list of jobs after the main repository
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
Subversion schema:
- We've a main repo named for example "appcore"
- This repository has a total of 9 repositories set as externals
- 8 from 9 repository are from the same root repository named "appcore-tools" which have the following structure:
- appcore-tools/library/main/trunk
- appcore-tools/library/local/trunk
- appcore-tools/library/book/trunk
- ...
- The last external point to a different repository
- All these repos are on the same svn server and the user used to checkout the sources has RW access to all.
Jenkins jobs schema:
- I have a job called "Appcore-BuildStable" which is responsible the build the main repository "appcore/trunk".
- For each external from point 2, we've separate jobs to build them. The name convention is Appcore-Main-BuildStable, Appcore-Local-BuildStable, Appcore-Book-BuildStable, etc..
- The last external from the different repository doesn't have a job (the code is not changed there).
All jobs have the Pool SCM option enabled and SVN trigger has the post commit hook enabled.
Behaviour:
After I've updated Jenkins and Subversion plugin to the latest versions, the pooling is not working anymore for all the jobs that are after "Appcore-BuildStable" in the list of jobs (which are alphabetically ordered).
If I commit something on appcore-tools/library/book/trunk, the job Appcore-Book-BuildStable starts.
If I commit something on appcore-tools/library/main/trunk, the job Appcore-Main-BuildStable doesn't start because is after the Appcore-BuildStable.
If I change the job name from "Appcore-Main-BuildStable" to "Appcore-BA-Main-BuildStable" and I commit something on the repo, the job starts.
The workaround for me was to rename the job "Appcore-BuildStable" to "Appcore-X-BuildStable". In this way, all the other jobs are before this job.
---
Originally reported by
marius_balteanu, imported from: Repositories set as external are not triggered if they are in the list of jobs after the main repository
recena
Raw content of original issue
Subversion schema:
- We've a main repo named for example "appcore"
- This repository has a total of 9 repositories set as externals
- 8 from 9 repository are from the same root repository named "appcore-tools" which have the following structure:
- appcore-tools/library/main/trunk
- appcore-tools/library/local/trunk
- appcore-tools/library/book/trunk
- ...
- The last external point to a different repository
- All these repos are on the same svn server and the user used to checkout the sources has RW access to all.
Jenkins jobs schema:
- I have a job called "Appcore-BuildStable" which is responsible the build the main repository "appcore/trunk".
- For each external from point 2, we've separate jobs to build them. The name convention is Appcore-Main-BuildStable, Appcore-Local-BuildStable, Appcore-Book-BuildStable, etc..
- The last external from the different repository doesn't have a job (the code is not changed there).
All jobs have the Pool SCM option enabled and SVN trigger has the post commit hook enabled.
Behaviour:
After I've updated Jenkins and Subversion plugin to the latest versions, the pooling is not working anymore for all the jobs that are after "Appcore-BuildStable" in the list of jobs (which are alphabetically ordered).If I commit something on appcore-tools/library/book/trunk, the job Appcore-Book-BuildStable starts.
If I commit something on appcore-tools/library/main/trunk, the job Appcore-Main-BuildStable doesn't start because is after the Appcore-BuildStable.
If I change the job name from "Appcore-Main-BuildStable" to "Appcore-BA-Main-BuildStable" and I commit something on the repo, the job starts.The workaround for me was to rename the job "Appcore-BuildStable" to "Appcore-X-BuildStable". In this way, all the other jobs are before this job.
environment
```
Jenkins 1.618
Subversion 2.5
```
2 attachments
- [JENKINS-29293.png](https://issues.jenkins.io/secure/attachment/30162/JENKINS-29293.png)
> 
- [JENKINS-29293.png](https://issues.jenkins.io/secure/attachment/30161/JENKINS-29293.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.