pyjen.changeset module¶
Primitives for interacting with SCM changesets
-
class
pyjen.changeset.
Changeset
(api, data)[source]¶ Bases:
object
Represents a set of changes associated with a build of a Jenkins job
See also
- Parameters
api (
/utils/jenkins_api/JenkinsAPI
) – Pre-initialized connection to the Jenkins REST APIdata (dict) –
Dictionary of data elements typically parsed from the “changeSet” node of a builds source data as provided by the Jenkins REST API. Should have at least the following keys:
- ’kind’ - string describing the SCM tool associated with this set
of changes.
- ’items’ - list of 0 or more SCM revisions associated with this
change
-
affected_items
¶ gets details of the changes associated with the parent build
- Returns
list of 0 or more revisions detailing each change associated with this Changeset
- Return type
list
ofChangesetItem
objects
-
has_changes
¶ Checks whether or not there are any SCM changes
- Returns
True if changes have been found, False if not
- Return type
-
class
pyjen.changeset.
ChangesetItem
(api, data)[source]¶ Bases:
object
details of each SCM revision associated with a given
Changeset
See also
- Parameters
data (dict) –
Dictionary of attributes describing this revision. Required keys are as follows:
- Returns
Person who committed this change to the associated SCM
- Return type