Commit c655a671 authored by David Hamner's avatar David Hamner
Browse files

clean up

parent 47f7b2ab
Pipeline #71627 passed with stages
in 4 minutes and 57 seconds
......@@ -270,7 +270,6 @@ def download_jumpdrive(url, target):
resp.raise_for_status()
raw_site = resp.text
URL_base = url.split("/")[2]
projet = url.split("/")[3]
available_downloads = {}
for line in raw_site.split('\n'):
......@@ -279,13 +278,12 @@ def download_jumpdrive(url, target):
line = line.split('"')
URL_base = line[0]
# Example URL_base
#/librem5-apps/jumpdrive/-/jobs/367236
# /librem5-apps/jumpdrive/-/jobs/367236
build_number = URL_base.split("/")[-1].strip()
build_number = int(build_number)
URL = f"https://source.puri.sm/librem5-apps/jumpdrive/-/jobs/{build_number}/artifacts/download"
available_downloads[build_number] = URL
latest = max(available_downloads.keys())
target_url = available_downloads[latest]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment