get_build_artifact() tries to parse results as JSON, rendering non-Json artifacts impossible to download
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Jenkins |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to download (potentially binary) artifacts via
```
jenkins_
```
Results in errors like
```
DEBUG 2023-05-05 09:40:44 urllib3.
DEBUG 2023-05-05 09:40:44 charset_normalizer: Encoding detection: ascii is most likely the one.
Traceback (most recent call last):
File "../site-
return json.loads(
File "../json/
return _default_
File "../json/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "../json/
raise JSONDecodeError
json.decoder.
```
This seems to happen because `jenkins/
```
response = self.jenkins_
'GET', self._build_
if response:
return json.loads(
else:
raise JenkinsExceptio
```