diff --git a/docker/base/setup_clusterfuzz.sh b/docker/base/setup_clusterfuzz.sh index 8b92e7e52fc..4023e34627d 100644 --- a/docker/base/setup_clusterfuzz.sh +++ b/docker/base/setup_clusterfuzz.sh @@ -18,6 +18,11 @@ if [ -z "$DEPLOYMENT_BUCKET" ]; then export DEPLOYMENT_BUCKET=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/project/attributes/deployment-bucket) fi +if [ -z "$HOST_JOB_SELECTION" ]; then + # Get list of jobs to focus on from instance metadata, if any. + export HOST_JOB_SELECTION=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/host-job-selection || true) +fi + CLUSTERFUZZ_FILE=clusterfuzz_package.zip # When $LOCAL_SRC is set, use source zip on mounted volume for local testing. if [[ -z "$LOCAL_SRC" ]]; then