diff options
author | fboudra@gmail.com <> | 2012-08-03 13:38:06 +0300 |
---|---|---|
committer | fboudra@gmail.com <> | 2012-08-03 13:38:06 +0300 |
commit | 01d9d32f4f4d49e2433ad81d9807ac6a3f172911 (patch) | |
tree | f350e921b59698166ea02230a0287f5b7510af16 /scripts | |
parent | 6ce3972bf7c5ebbe5dc27713ffa4fec5d1a50717 (diff) |
Add openembedded job type tp publish sources and sstate-cache (LP: #1032134)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish_to_snapshots.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py index 404fd9b..7bcddc2 100755 --- a/scripts/publish_to_snapshots.py +++ b/scripts/publish_to_snapshots.py @@ -34,6 +34,7 @@ acceptable_job_types = [ 'ubuntu-images', 'ubuntu-restricted', 'ubuntu-sysroots', + 'openembedded', 'binaries' ] @@ -64,6 +65,8 @@ class SnapshotsPublisher(object): args.job_type == "ubuntu-restricted" or args.job_type == "ubuntu-sysroots"): ret_val = jobname.split('-', 2) + elif args.job_type == "openembedded": + ret_val = jobname.split('-', 2) elif args.job_type == "prebuilt": # Return value must not be None when we want to ignore it. ret_val = '' @@ -105,6 +108,13 @@ class SnapshotsPublisher(object): [dist_name, hwpack_image, board_rootfs_name, str(args.build_num)]) target_dir_path = os.path.join(target_path, target_dir) + elif args.job_type == "openembedded": + build_dir_path = os.path.join(uploads_path, + args.job_type, + args.job_name) + target_dir_path = os.path.join(target_path, + args.job_type, + args.job_name) elif args.job_type == "prebuilt": build_path = '%s/%d' % (args.job_name, args.build_num) build_dir_path = os.path.join(uploads_path, build_path) |