jenkinsci / jenkinsci/matrix-project-plugin
[JENKINS-19902] repo SCM syncs in wrong workspace of matrix build
- Dominant language
- Java
- Stars
- 17
- Forks
- 85
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 5
Description
I created a matrix project, using the repo SCM (RepoSCM). The main job correctly syncs the source into the main workspace area. The sub-jobs incorrectly also sync the source into the main workspace, rather than the per-configuration workspace.
Console output from the main job:
Building in workspace /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace
[workspace] $ /home/swarren/shared/git_wa/swarren-home/bin-swarren/repo init -u git://github.com/NVIDIA/tegra-uboot-flasher-manifests.git -g default,-tools,-bootloader
...
repo has been initialized in /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace
Console output from the sub-job:
Building in workspace /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace/board/harmony
[harmony] $ /home/swarren/shared/git_wa/swarren-home/bin-swarren/repo init -u git://github.com/NVIDIA/tegra-uboot-flasher-manifests.git -g default,-tools,-bootloader
repo has been initialized in /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace
I'm attaching the job configuration XML file too, which should "just work" in a standalone fashion.
---
Originally reported by swarren, imported from: repo SCM syncs in wrong workspace of matrix build
Raw content of original issue
I created a matrix project, using the repo SCM (RepoSCM). The main job correctly syncs the source into the main workspace area. The sub-jobs incorrectly also sync the source into the main workspace, rather than the per-configuration workspace.
Console output from the main job:
Building in workspace /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace
[workspace] $ /home/swarren/shared/git_wa/swarren-home/bin-swarren/repo init -u git://github.com/NVIDIA/tegra-uboot-flasher-manifests.git -g default,-tools,-bootloader
...
repo has been initialized in /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspaceConsole output from the sub-job:
Building in workspace /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace/board/harmony
[harmony] $ /home/swarren/shared/git_wa/swarren-home/bin-swarren/repo init -u git://github.com/NVIDIA/tegra-uboot-flasher-manifests.git -g default,-tools,-bootloaderrepo has been initialized in /var/lib/jenkins/jobs/repo-matrix-failure-bug/workspace
I'm attaching the job configuration XML file too, which should "just work" in a standalone fashion.
- environment:
Linux, Ubuntu 12.10, Jenkins PPA
1 attachment
- [config.xml](https://issues.jenkins.io/secure/attachment/24481/config.xml)
Contributor guide
Research direction
Start with the attached config.xml and reproduce the matrix build using RepoSCM, comparing the main-job and sub-job workspace paths in the console output. Trace the matrix-project-plugin workspace handling to determine why the sub-job sync reports the main workspace; done means the sync uses the per-configuration workspace without regressing standalone builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100