Merge pull request #5904 from lmskater/clean-workspace

[Jenkins] Clean workspace after build finish
This commit is contained in:
James Chen 2014-03-21 14:19:44 +08:00
commit e879e0399d
1 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,9 @@ def main():
exit_code = 1
#clean workspace
os.system("cd " + os.environ['WORKSPACE']);
os.system("cd " + os.environ['WORKSPACE'])
os.system("git reset --hard")
os.system("git clean -xdf -f")
os.system("git checkout develop")
os.system("git branch -D pull" + str(pr_num))