Tuesday 15 January 2013

jenkins - Is there a good example passing build parameters with Python jenkinsapi and why is the below example failing? -


I'm trying to call a job using the Python Jenkins package. I'm able to kickstart a build using jop.py, but the parameters are not being raised while trying to exceed the string parameters on the Jenkins server and the default values ​​configured on the Jenkins server can be used instead Are there. my_job.invoke (securitytoken = 'mytoken', params = {'param1': 'value1'). , 'Absolute 2': 'value2'})

Again, the build has been successfully closed on the Jenkins server, but none of the parameter values ​​has been raised by the job on the server. And instead the default values ​​are used in job configurations on the server.

Can anyone tell me what is wrong with the above use? What are the other parameters that are necessary? Is anyone an example of using Paraglated Build using Jenkinship?

This is for Junkiepi 0.1.16

Looking at the job code , It seems that it should be build_params , no parameter

  def (self, security, token = none, block = false , Skip_if_running = wrong, invoke_pre_check_delay = 3, invoke_block_delay = 15, build_params = none, reason = none):    

No comments:

Post a Comment