Hi, what would be the best way to prevent concurrent builds on the server? I have a pre-build script all my scripts include and I'm wondering what the best way to maybe implement a 'lock' file? Does anyone have any recommendations? I was thinking I would exclusively checkout a file in source control to denote a build in progress, and loop until it's not checked out. Is there a better way?
Thanks for your post. The general consensus is that the “Create Text File” action with “Overwrite Existing File” disabled is the quickest and easiest way to do this. Make sure you wrap your build process in a Try…Finally to delete the file when you’re done.
Incidentally, the next version of FinalBuilder Server will have a feature to circumvent this problem.