File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -949,11 +949,11 @@ def command_task_artifacts(args):
949949 ],
950950 }
951951 print (f"PERFHERDER_DATA: { json .dumps (perfherder_data )} " , file = sys .stderr )
952- upload_dir = os .environ .get ("UPLOAD_DIR " )
953- if os .environ .get ("MOZ_AUTOMATION" , "0" ) == "1" and upload_dir :
954- upload_path = pathlib .Path (upload_dir ) / "perfherder-data-fetch-content.json"
952+ perfherder_fetch_content_json_path = os .environ .get ("PERFHERDER_FETCH_CONTENT_JSON_PATH " )
953+ if os .environ .get ("MOZ_AUTOMATION" , "0" ) == "1" and perfherder_fetch_content_json_path :
954+ upload_path = pathlib .Path (perfherder_fetch_content_json_path )
955955 upload_path .parent .mkdir (parents = True , exist_ok = True )
956- with upload_path .open ("w" ) as f :
956+ with upload_path .open ("w" , encoding = "utf-8" ) as f :
957957 json .dump (perfherder_data , f )
958958
959959
You can’t perform that action at this time.
0 commit comments