How can semaphores be used to avoid race conditions in Jenkins?

102 views
Skip to first unread message

Robert Kruck

unread,
May 5, 2016, 8:44:47 AM5/5/16
to Jenkins Users
How can semaphores be used to avoid race conditions in Jenkins?

We have Jenkins projects that apply StarTeam labels to file versions.

All labeling for each software package must be completed, before going on to label another software pages.

Is there a Jenkins plugin that can reliably prevent more than one Jenkins project from executing on the same resources (i.e. build server)?

Can this also be done if the master+slaves setup is in the form of a build farm, in which the risk of concurrency is extreme if a semaphore-like model is not being used?

Matthew...@diamond.ac.uk

unread,
May 5, 2016, 9:10:25 AM5/5/16
to jenkins...@googlegroups.com

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Robert Kruck
Sent: 05 May 2016 13:45
To: Jenkins Users
Subject: How can semaphores be used to avoid race conditions in Jenkins?

 

How can semaphores be used to avoid race conditions in Jenkins?

 

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 

Robert Kruck

unread,
May 5, 2016, 11:21:10 AM5/5/16
to Jenkins Users


On Thursday, May 5, 2016 at 7:44:47 AM UTC-5, Robert Kruck wrote:
How can semaphores be used to avoid race conditions in Jenkins?

We have Jenkins projects that apply StarTeam labels to file versions.

All labeling for each software package must be completed, before going on to label another software package.
Reply all
Reply to author
Forward
0 new messages