Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Handle publishing of glean-gradle-plugin #2

Merged
merged 1 commit into from Nov 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 12 additions & 4 deletions script.py
Expand Up @@ -14,15 +14,23 @@
)


GLEAN_PACKAGES = [
'glean',
'glean-forUnitTests',
'glean-gradle-plugin'
]


async def move_beets(context):
"""TODO"""
uploads = []
for file, local_path in context.extracted_files.items():
# TODO: to fix via regex etraction here
if 'forUnitTests' in file:
destination = f"maven2/org/mozilla/telemetry/glean-forUnitTests/{context.version}/{file}"
for package_name in GLEAN_PACKAGES:
if file.startswith(f"{package_name}-{context.version}"):
destination = f"maven2/org/mozilla/telemetry/{package_name}/{context.version}/{file}"
break
else:
destination = f"maven2/org/mozilla/telemetry/glean/{context.version}/{file}"
continue

uploads.append(
asyncio.ensure_future(
Expand Down