-
Bug
-
Resolution: Unresolved
-
Major
When using a matrix build job, the git plugin checks out the repository for each axis combination, which is totally fine.
Unfortunately, it does also checkout the repository in the root workspace directory.
Example:
- Matrix build:
- CONFBRANCH: master, foo
- CONFBAR: bar, baz
- this results in the following combinations:
- master/bar
- master/baz
- foo/bar
- foo/baz
- building the project does 5 checkouts:
- workspace/
- workspace/CONFBAR/bar/CONFBRANCH/master
- workspace/CONFBAR/bar/CONFBRANCH/foo
- workspace/CONFBAR/baz/CONFBRANCH/master
- workspace/CONFBAR/baz/CONFBRANCH/foo
- workspace/
In my eyes, the first checkout (to workspace/) should not happen since it does not belong to any matrix build configuration.
I can confirm this behavior. In my case, since the repository is really huge for legacy reasons, the clone made by the flyweight executor really seems to be a waste.
Is this clone really necessary?