> This is an issue, because they're building in the same folders, which could cause a right mess with compilation.
If two calls to `node` (from the same job) matching the same node are
done concurrently then two separated workspaces will be allocated, so
there is no risk.
> On the other hand, I can see the benefit in being able to start the compilation stage of the next build once the previous one is in the testing phase.
Use the `lock` step (from `lockable-resources-plugin`):
stage 'Build'
lock ('compile-env') {
[...]
}
stage 'Test'
lock ('test-env') {
[...]
}
This way only one build will be inside a `lock` block concurrently.
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/jenkinsci-users/e5c534a7-5fec-4464-b65f-760430dbd385%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Antonio Muñiz
Software Engineer
CloudBees, Inc.