c['builders'] = []
dlLock = locks.SlaveLock("slave_dl")
+tagLock = locks.MasterLock("make_tag")
checkBuiltin = re.sub('[\t\n ]+', ' ', """
checkBuiltin() {
path = home_dir+'/source.git',
env = {'GNUPGHOME': gpg_home},
haltOnFailure = True,
- doStepIf = IsTaggingRequested
+ doStepIf = IsTaggingRequested,
+ locks = [tagLock.access('exclusive')]
))
# switch to branch
mode = 'incremental',
method = 'clean'))
+ # update remote refs
+ factory.addStep(ShellCommand(
+ name = "fetchrefs",
+ description = "Fetching Git remote refs",
+ command = ["git", "fetch", "origin", "+refs/heads/%s:refs/remotes/origin/%s" %(repo_branch, repo_branch)],
+ haltOnFailure = True
+ ))
+
# fetch tags
factory.addStep(ShellCommand(
name = "fetchtag",