You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that self._data['changeSets'] is a list rather than a dict, so checking if 'items' is in it will not return true.
EXPECTED RESULTS
I'd expect that the method would return the changeset items for the build.
ACTUAL RESULTS
An empty list is returned.
USEFUL INFORMATION
Picture of type returned in the build._data:
The text was updated successfully, but these errors were encountered:
decimalst
changed the title
Jenkins response body has 'changeSets' as a list, causing get_changeset_items() to return nothing
Jenkins response body has 'changeSets' as a list, but get_changeset_items() is expecting a dict
Nov 8, 2019
decimalst
changed the title
Jenkins response body has 'changeSets' as a list, but get_changeset_items() is expecting a dict
Jenkins build response data has 'changeSets' as a list, but build.get_changeset_items() is expecting a dict
Nov 8, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
ISSUE TYPE
Bug Report
Jenkinsapi VERSION
Jenkins VERSION
SUMMARY
Jenkins API is returning
Experiencing an issue while attempting to use the get_changeset_items() method.
The relevant lines are here:
jenkinsapi/jenkinsapi/build.py
Lines 142 to 144 in 8e93675
It appears that
self._data['changeSets']
is a list rather than a dict, so checking if 'items' is in it will not return true.EXPECTED RESULTS
I'd expect that the method would return the changeset items for the build.
ACTUAL RESULTS
An empty list is returned.
USEFUL INFORMATION
Picture of type returned in the build._data:
The text was updated successfully, but these errors were encountered: