Comment 2 for bug 1973243

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-jenkins (master)

Reviewed: https://review.opendev.org/c/jjb/python-jenkins/+/841640
Committed: https://opendev.org/jjb/python-jenkins/commit/5c44d7c9ecc6d8e92a935ac7b3a0262016d6ebb0
Submitter: "Zuul (22348)"
Branch: master

commit 5c44d7c9ecc6d8e92a935ac7b3a0262016d6ebb0
Author: Guillaume DeMengin <email address hidden>
Date: Sat Nov 26 19:35:37 2022 +0100

    get_build_artifact_as_bytes to support non-json files

    new function get_build_artifact_as_bytes to replace get_build_artifact (incompatible with artifacts not json-formatted)
    + use a stream to download binary artifacts

    all artifacts are returned as bytes to avoid encoding issues
    and an exception NotFoundException is raised in case of missing artifact

    Closes-Bug: #1973243
    Change-Id: I24ce4ecd854f8a19ed4d760404adb7d1ac6b5509