Skip to content

Commit

Permalink
Pilot: After checking for new commits, switch back to old branch
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 7, 2015
1 parent 40d80c7 commit 39e4ce2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions distrib/pilot.py
Expand Up @@ -373,13 +373,17 @@ def doTask(task):

elif task.startswith('check_'):
if pilotcfg.ID == 'master':
oldBranch = currentBranch()
branch = task[6:]
msg("CHECK BRANCH: " + branch)
autobuild('pull')
if switchToBranch(branch):
autobuild('pull')
if checkBranchHeadForChanges():
newTask('buildfrom_' + branch, allClients=True)
else:
switchToBranch(oldBranch)
autobuild('pull')
return True

elif task == 'tag_build':
Expand Down

0 comments on commit 39e4ce2

Please sign in to comment.