Dashboard > Pulse v2.1 > ... > Remote API Examples > Python Example - Triggering Builds
  Pulse v2.1 Log In | Sign Up   View a printable version of the current page.  
  Python Example - Triggering Builds
Added by Jason Sankey, last edited by Jason Sankey on Mar 19, 2009
Labels: 
(None)

Pulse Manual Index

Overview

Triggers a project build remotely.

Code

#! /usr/bin/env python

from xmlrpclib import ServerProxy, Error

PULSE_URL = "http://pulse/xmlrpc"
USER = "user"
PASSWORD = "secret"
PROJECT = "my project"

server = ServerProxy(PULSE_URL)

try:
    token = server.RemoteApi.login(USER, PASSWORD)
    server.RemoteApi.triggerBuild(token, PROJECT)
    server.RemoteApi.logout(token)
except Error, v:
    print "Error:", v

Zutubi wiki is Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators