Traceback (most recent call last):
File "src/controller/jenkins.py", line 127, in <module>
print_job_details(job)
File "src/controller/jenkins.py", line 21, in print_job_details
print("Get SCM Url: {}".format(job.get_scm_url()))
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jenkinsapi/job.py", line 499, in get_scm_url
scm = self.get_scm_type()
File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/jenkinsapi/job.py", line 481, in get_scm_type
scm_class = element_tree.find('scm').get('class')
AttributeError: 'NoneType' object has no attribute 'get'
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
latest
Jenkins VERSION
2.107.1
SUMMARY
When using Flows, Pipelines, the SCM settings (type, URL, etc) can't be fetched
EXPECTED RESULTS
Should be able to fetch
ACTUAL RESULTS
Exception is thrown when trying to get any configuration such as scm
USEFUL INFORMATION
definition
element_tree.find("definition").find("scm")