예제 #1
0
파일: Deploy.py 프로젝트: wuyou1102/Jenkins
def create_commit_history():
    compiler_path = Utility.get_compiler_path()
    deploy_path = Utility.get_deploy_path()
    os.chdir(compiler_path)
    since = Utility.get_timestamp(time_fmt="%Y-%m-%d %H:%M",
                                  t=Env.BUILD_TIME - 3600 * 24 * 3)
    output = os.popen(Utility.Repo.log(since=since)).read()
    with open(os.path.join(deploy_path, "CommitHistory.txt"), "w") as wfile:
        wfile.write(output)
예제 #2
0
파일: Deploy.py 프로젝트: wuyou1102/Jenkins
def deploy_user_version():
    output_path = get_user_path()
    if output_path:
        deploy_path = Utility.get_deploy_path()
        copy_binary_to_deploy(src_folder=output_path,
                              dst_folder=os.path.join(deploy_path, binary))
        copy_debug_info_to_deploy(src_folder=get_out_path(),
                                  dst_folder=os.path.join(
                                      deploy_path, debuginfo))
    else:
        JobFunc.RaiseException(IOError, "Can not find out file.")