in buildkite/download-artifact/download_artifacts.py [0:0]
def run() -> None:
org = os.environ["ORG"]
pipeline = os.environ["PIPELINE"]
build_number = os.environ["BUILD_NUMBER"]
artifact_path = os.environ["ARTIFACT_PATH"]
request = ListArtifactsRequestURLBuilder(org, pipeline, build_number)
artifacts_to_download = get_artifacts_to_download(
artifact_path,
request.get_url()
)
download_artifacts(artifacts_to_download)