jenkinsflow.jobload module¶
-
jenkinsflow.jobload.
update_job
(jenkins, job_name, config_xml, pre_delete=False, background=False)[source]¶ Update or create a job in Jenkins.
Parameters: - jenkins (jenkins_api.Jenkins) – Jenkins Api instance used for accessing jenkins.
- job_name (str) – The name of the job.
- config_xml (str) – The Jenkins job config xml.
- pre_delete (boolean) – I the job exists it will be deleted and re-created instead of being updated.
-
jenkinsflow.jobload.
update_job_from_template
(jenkins, job_name, config_xml_template, pre_delete=False, background=False, context=None)[source]¶ Create or update a job based on a Tenjin http://www.kuwata-lab.com/tenjin/ config.xml template.
Parameters: - config_xml_template (str) – Filename of tenjin config.xml template.
- context (dict) – Values to be used for template substitution.
See
update_job()
for other parameters.