pyjen.utils.helpers module

Misc helper methods shared across the library

pyjen.utils.helpers.create_job(api, job_name, job_class)[source]

Creates a new job on the Jenkins dashboard

Parameters
  • api – Jenkins rest api connection to use for creation of the view`

  • job_name (str) – the name for this new job This name should be unique, different from any other jobs currently managed by the Jenkins instance

  • job_class – PyJen plugin class associated with the type of job to be created

pyjen.utils.helpers.create_view(api, view_name, view_class)[source]

Creates a new view on the Jenkins dashboard

Parameters
  • api – Jenkins rest api connection to use for creation of the view`

  • view_name (str) – the name for this new view This name should be unique, different from any other views currently managed by the Jenkins instance

  • view_class – PyJen plugin class associated with the type of view to be created