stage(code_scan, ut & build) {
parallel static_code_scan: {
}, unit_test: {
}, build: {
}
}
I have a Pull Request Pipeline with a build stage that runs a shell script that starts a static code scan, then unit test and finally build stage. I have split the script using 3 case statements, each called by 3 parallel jobs in my pipeline. This Job runs on either 2 Build nodes, I believe the way I have my parallel script setup it cannot handle more then 2 parallel jobs at the same time, the issue is with index-pack.
- Should I instead have a separate stage for static code scan, which only takes about 5 minutes, and one stage for unit and build which take longer, instead of one stage with 3 parallel stages?
The issue is that all 3 steps need to git clone a repository to run each task. I am able to do so with only 2 parallel steps but not all 3 together. This is the error I get:
17:09:00 + git clone [email protected]:[REPO].git -b master .
17:09:00 Cloning into '.'...
17:09:02 fatal: Unable to read current working directory: No such file or directory
17:09:02 fatal: index-pack failed