phase1: run maketag.sh under exclusive lock
authorJo-Philipp Wich <jo@mein.io>
Wed, 14 Dec 2016 00:26:08 +0000 (01:26 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Dec 2016 00:26:08 +0000 (01:26 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index e73f31dd8e7fd7aa679c5c14a5328eaae9ffd885..dc1e66de7203ed4445305dac187e96f052b3d176 100644 (file)
@@ -206,6 +206,7 @@ def GetVersionPrefix(props):
 c['builders'] = []
 
 dlLock = locks.SlaveLock("slave_dl")
+tagLock = locks.MasterLock("make_tag")
 
 checkBuiltin = re.sub('[\t\n ]+', ' ', """
        checkBuiltin() {
@@ -309,7 +310,8 @@ for target in targets:
                path = home_dir+'/source.git',
                env = {'GNUPGHOME': gpg_home},
                haltOnFailure = True,
-               doStepIf = IsTaggingRequested
+               doStepIf = IsTaggingRequested,
+               locks = [tagLock.access('exclusive')]
        ))
 
        # switch to branch