2013-12-30 21:11:32 +08:00
|
|
|
import os
|
2014-01-02 10:19:48 +08:00
|
|
|
import sys
|
2014-01-02 17:09:49 +08:00
|
|
|
import traceback
|
|
|
|
|
|
|
|
# -------------- main --------------
|
|
|
|
if __name__ == '__main__':
|
2014-01-06 20:58:00 +08:00
|
|
|
sys_ret = 0
|
2014-10-14 17:31:53 +08:00
|
|
|
try:
|
2015-04-13 15:56:28 +08:00
|
|
|
jenkins_script_path = "tools" + os.sep + "jenkins-scripts" + os.sep + "do-pull-request-builder.py"
|
2015-04-13 16:11:09 +08:00
|
|
|
sys_ret = os.system("python " + jenkins_script_path)
|
2014-01-02 17:09:49 +08:00
|
|
|
except:
|
2014-01-04 16:25:31 +08:00
|
|
|
traceback.print_exc()
|
2014-01-06 20:58:00 +08:00
|
|
|
sys_ret = 1
|
|
|
|
finally:
|
|
|
|
sys.exit(sys_ret)
|