diff options
author | Andy Doan <andy.doan@linaro.org> | 2012-03-28 11:38:32 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2012-03-28 11:38:32 -0500 |
commit | 44bdb8864fcf90dabd6d6da291a61d0d5e72a2ea (patch) | |
tree | d71fa430d64348a224de40b38468ff40056ca9e3 /scripts | |
parent | 19e832832ec884397a5abdc855a15d3fce4bbfb9 (diff) |
fix layout issue for prebuilt
The original commit for pre-built layouts assumed jenkins could
pass something like 20120328. This isn't known by jenkins so we
instead change the layout to use jobname and build number.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish_to_snapshots.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py index 05921e5..aa5d2e5 100755 --- a/scripts/publish_to_snapshots.py +++ b/scripts/publish_to_snapshots.py @@ -50,7 +50,7 @@ class SnapshotsPublisher(object): elif args.job_type == "kernel-hwpack": ret_val = jobname.split('_')[0].replace(".", "_") elif args.job_type == "prebuilt": - ret_val = args.job_name + ret_val = '' #just need non-null since its isn't needed return ret_val def validate_paths(self, args, uploads_path, target_path): @@ -75,10 +75,9 @@ class SnapshotsPublisher(object): args.job_name]) target_dir_path = os.path.join(target_path, target_dir) elif args.job_type == "prebuilt": - build_path = '%s-%s/%d' % (args.job_type, args.job_name, - args.build_num) + build_path = '%s/%d' % (args.job_name, args.build_num) build_dir_path = os.path.join(uploads_path, build_path) - target_dir_path = os.path.join(target_path, ret_val) + target_dir_path = target_path else: return None, None |