mirror of https://github.com/google/oss-fuzz.git
This commit is contained in:
parent
93eec08bbc
commit
fdd28c42e9
|
@ -92,6 +92,15 @@ def get_build_steps(project_dir):
|
|||
],
|
||||
'dir': 'oss-fuzz/projects/' + name,
|
||||
},
|
||||
{
|
||||
'name':
|
||||
image,
|
||||
'args': [
|
||||
'bash', '-c',
|
||||
'srcmap > /workspace/srcmap.json && cat /workspace/srcmap.json'
|
||||
],
|
||||
'env': ['OSSFUZZ_REVISION=$REVISION_ID'],
|
||||
},
|
||||
]
|
||||
|
||||
env = CONFIGURATION[:]
|
||||
|
@ -204,6 +213,21 @@ def get_build_steps(project_dir):
|
|||
}
|
||||
)
|
||||
|
||||
# Upload srcmap.
|
||||
srcmap_upload_url = UPLOAD_URL_FORMAT.format(
|
||||
project=project_name, type='srcmap', date=report_date)
|
||||
srcmap_upload_url = srcmap_upload_url.rstrip('/') + '.json'
|
||||
build_steps.append(
|
||||
{
|
||||
'name': 'gcr.io/cloud-builders/gsutil',
|
||||
'args': [
|
||||
'cp',
|
||||
'/workspace/srcmap.json',
|
||||
srcmap_upload_url,
|
||||
],
|
||||
}
|
||||
)
|
||||
|
||||
# Update the latest report information file for ClusterFuzz.
|
||||
latest_report_info_url = build_project.get_signed_url(
|
||||
LATEST_REPORT_INFO_URL.format(project=project_name),
|
||||
|
|
Loading…
Reference in New Issue