Hi,

if it is a shared workspace, then yes, it will have a race condition. Use 
one of the lock-out plugins to limit the concurrency of the job to 1, then 
the jobs will get queued instead.

Björn

Am Montag, 13. Juni 2016 09:58:44 UTC+2 schrieb Berceanu Cristian:
>
> I have a very simple build step set up: Pull the change from a gerrit 
> server and then build that change. I do pull patchset so the pull doesn't 
> download the whole repo. I also set up a workspace for the next task to 
> compile the downloaded patchset. My question is: Can this run into a race 
> condition? My build takes around 1 minute and if someone commits something 
> in that 1 minute I'm afraid the other task will fire and will overwrite the 
> workspace, since it's a shared workspace.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ea52d09c-a43f-4533-8973-75c5a01be33d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to