Example #1
0
def publish_build(build_name, branch='master', commit=gen_random_num(32)):
    request = {}
    request['name'] = build_name
    request['repo'] = "sample-repo"
    request['branch'] = branch
    request['commit'] = commit
    request['commitDate'] = int(round(time.time() * 1000))
    request['artifactUrl'] = "https://sample.com"
    request['publishInfo'] = "https://sample.com"
    build = builds_helper.publish_build(REQUEST, request)
    print "Successfully published build %s." % build['id']
    return build
Example #2
0
def publish_build(build_name, branch='master', commit=gen_random_num(32)):
    request = {}
    request['name'] = build_name
    request['repo'] = "sample-repo"
    request['branch'] = branch
    request['commit'] = commit
    request['commitDate'] = int(round(time.time() * 1000))
    request['artifactUrl'] = "https://sample.com"
    request['publishInfo'] = "https://sample.com"
    build = builds_helper.publish_build(REQUEST, request)
    print "Successfully published build %s." % build['id']
    return build