diff options
author | Georgy Redkozubov <georgy.redkozubov@linaro.org> | 2013-01-30 15:13:01 +0400 |
---|---|---|
committer | Georgy Redkozubov <georgy.redkozubov@linaro.org> | 2013-01-30 15:13:01 +0400 |
commit | 2386db832c87fba7c0befc6c08610db62317b4ab (patch) | |
tree | c49defbfd05595d85299f7260174d95a38f0513e /scripts | |
parent | 78d3face51af59574127b7cb33226b389cabe3b3 (diff) |
Remove artifacts from upload dir
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish_to_snapshots.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py index 3e0ad53..c03b6f3 100755 --- a/scripts/publish_to_snapshots.py +++ b/scripts/publish_to_snapshots.py @@ -398,6 +398,9 @@ def main(): ret = publisher.check_buildinfo(build_dir_path) if ret != PASS: print "BUILD-INFO.txt is not present in artifacts being published" + # Remove artifacts from upload dir + if os.path.isdir(build_dir_path): + shutil.rmtree(build_dir_path) return FAIL ret = publisher.move_artifacts(args, build_dir_path, target_dir_path) if ret != PASS: |