pyjen.plugins.freestylejob module

Primitives that manage Jenkins job of type ‘Freestyle’

class pyjen.plugins.freestylejob.FreestyleJob(controller, jenkins_master)[source]

Bases: pyjen.job.Job

Jenkins job of type ‘freestyle’

To instantiate an instance of this class using auto-generated configuration parameters, see the easy_connect() method

Parameters:
  • data_io_controller (DataRequester) – class capable of handling common HTTP IO requests sent by this object to the Jenkins REST API
  • jenkins_master (Jenkins) – Reference to Jenkins object associated with the master instance managing this job
custom_workspace[source]
Returns:custom workspace associated with this job
Return type:str
scm[source]

Gets the object that manages the source code management configuration for a job

Returns:One of several possible plugin objects which exposes the relevant set of properties supported by a given source code management tool.
Return type:PluginBase
static template_config_xml()[source]

Gets a basic XML configuration template for use when instantiating jobs of this type

Returns:a basic XML configuration template for use when instantiating jobs of this type
Return type:str
type = 'project'