mirror of
https://github.com/boostorg/build.git
synced 2026-02-17 01:32:12 +00:00
39 lines
1.3 KiB
Python
Executable File
39 lines
1.3 KiB
Python
Executable File
#!/usr/bin/python
|
|
#
|
|
# copyright (C) 2008 troy d. straszheim <troy@resophonic.com>
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
# See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt
|
|
#
|
|
|
|
#
|
|
# Start a new build, notify server via xmlrpc
|
|
#
|
|
|
|
import sys
|
|
sys.path.append("@BOOST_BUILD_SLAVE_PYTHONPATH@")
|
|
from boost_build_slave import *
|
|
|
|
print 'Url:', svn_entry.url, "at rev", svn_entry.revision.number
|
|
print 'FQDN:', fqdn
|
|
print 'Uname:', uname
|
|
print 'Toolset:', toolset
|
|
|
|
print '\nNotifying %s of new build via XML-RPC' % xmlrpc_url
|
|
s = xmlrpclib.Server(xmlrpc_url)
|
|
|
|
build_id = s.traash.start_build({ 'svn_url' : svn_entry.url,
|
|
'svn_rev' : svn_entry.revision.number,
|
|
'sysname' : uname[0],
|
|
'nodename' : uname[1],
|
|
'sys_release' : uname[2],
|
|
'sys_version' : uname[3],
|
|
'sys_machine' : uname[4],
|
|
'fqdn' : fqdn,
|
|
'toolset' : toolset,
|
|
'contact' : contact_info,
|
|
'details' : details() })
|
|
|
|
set_build_id(build_id)
|