Luxoft / Twister

Twister Test Automation Framework
http://www.twistertesting.com/
Apache License 2.0
38 stars 21 forks source link

Question: About Jenkins Plugin #153

Closed jashanka closed 9 years ago

jashanka commented 9 years ago

Hi,

This is a query.
While I was trying to integrate Jenkins plugin, wanted to validate 'Jenkins_Post_Script.py', so modified it as below,

import xmlrpclib

twister_job = "twister" twister_build = "2.0" twister_status = "done"

server = xmlrpclib.ServerProxy('http://jai:gave_passwd@127.0.0.1:8000/')

to_send = 'Jenkins: Job {0}, Build {1}, Status {2}!'.format(twister_job, twister_build, twister_status) server.echo(to_send)

server.run_plugin('jai', 'Jenkins', {"command":True, "build":twister_build})

and ran this script manually like

$python Jenkins_Post_Script.py $

so according to document it has invoke the 'build script' (I created a dummy one for now) and then should run the 'project file' (gave an existing working project), but it's not starting the run. It just passes and comes back to prompt.

Please correct me if I've errors in that script, also please explain other parameters of run_plugin() method (I couldn't trace from it's definition).

Thanks, Jai

jashanka commented 9 years ago

Any comment on this, please.