aboutsummaryrefslogtreecommitdiff
path: root/infra/ci/worker/artifacts_uploader.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/ci/worker/artifacts_uploader.py')
-rw-r--r--infra/ci/worker/artifacts_uploader.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/infra/ci/worker/artifacts_uploader.py b/infra/ci/worker/artifacts_uploader.py
index d2c5f2571..2a446339e 100644
--- a/infra/ci/worker/artifacts_uploader.py
+++ b/infra/ci/worker/artifacts_uploader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python2
# Copyright (C) 2019 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -76,7 +76,7 @@ def upload_one_file_with_retries(fpath):
res = upload_one_file(fpath)
if res >= 0:
return res
- logging.warning('Upload of %s failed, retrying in %s seconds', fpath, retry)
+ logging.warn('Upload of %s failed, retrying in %s seconds', fpath, retry)
time.sleep(retry)
@@ -116,11 +116,6 @@ def main():
logging.error('Directory not found: %s', dirpath)
return 1
- # Make all artifacts readable by our user. Some of them are extracted as
- # rw-rw--- and owned by a diffrent user (whatever the "sandbox" docker
- # container uid ends up mapping to).
- subprocess.call(['sudo', 'chown', '-R', str(os.geteuid()), dirpath])
-
total_size = 0
uploads = 0
failures = 0