Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BUILD_ID environment variable support #4701

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/clusterfuzz/_internal/platforms/android/fetch_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ def get_latest_artifact_info(branch, target, signed=False):
if not client:
return None

build_id = environment.get_value('BUILD_ID')
if build_id is not None and build_id != '':
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if build_id

logs.info(f'BUILD_ID env var present with value {build_id}. '
f'Hence returning its value.')
return {"bid": build_id, "branch": branch, "target": target}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

single quotes


# TODO(https://github.com/google/clusterfuzz/issues/3950)
# After stabilizing the Cuttlefish image, revert this
if environment.is_android_cuttlefish():
Expand Down
Loading