Merge lp:~gesha/linaro-license-protection/staging-upload-paths into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Georgy Redkozubov
Status: Merged
Approved by: Stevan Radaković
Approved revision: 119
Merged at revision: 120
Proposed branch: lp:~gesha/linaro-license-protection/staging-upload-paths
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 31 lines (+7/-0)
1 file modified
scripts/publish_to_snapshots.py (+7/-0)
To merge this branch: bzr merge lp:~gesha/linaro-license-protection/staging-upload-paths
Reviewer Review Type Date Requested Status
Stevan Radaković Approve
Review via email: mp+121263@code.launchpad.net

Description of the change

This branch adds publishing to staging.snapshots.linaro.org server into correct paths.

To post a comment you must log in.
Revision history for this message
Stevan Radaković (stevanr) wrote :

Looks good.
Approve +1.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'scripts/publish_to_snapshots.py'
--- scripts/publish_to_snapshots.py 2012-08-22 19:33:22 +0000
+++ scripts/publish_to_snapshots.py 2012-08-24 19:15:24 +0000
@@ -10,6 +10,8 @@
1010
11uploads_path = '/srv/snapshots.linaro.org/uploads/'11uploads_path = '/srv/snapshots.linaro.org/uploads/'
12target_path = '/srv/snapshots.linaro.org/www/'12target_path = '/srv/snapshots.linaro.org/www/'
13staging_uploads_path = '/srv/staging.snapshots.linaro.org/uploads/'
14staging_target_path = '/srv/staging.snapshots.linaro.org/www/'
13PASS = 015PASS = 0
14FAIL = 116FAIL = 1
15acceptable_job_types = [17acceptable_job_types = [
@@ -324,6 +326,8 @@
324326
325327
326def main():328def main():
329 global uploads_path
330 global target_path
327 argument_parser = setup_parser()331 argument_parser = setup_parser()
328 publisher = SnapshotsPublisher(argument_parser)332 publisher = SnapshotsPublisher(argument_parser)
329 args = argument_parser.parse_args()333 args = argument_parser.parse_args()
@@ -331,6 +335,9 @@
331 publisher.validate_args(args)335 publisher.validate_args(args)
332 except PublisherArgumentException as exception:336 except PublisherArgumentException as exception:
333 argument_parser.error(exception.message)337 argument_parser.error(exception.message)
338 if args.staging:
339 uploads_path = staging_uploads_path
340 target_path = staging_target_path
334 try:341 try:
335 build_dir_path, target_dir_path = publisher.validate_paths(342 build_dir_path, target_dir_path = publisher.validate_paths(
336 args, uploads_path, target_path)343 args, uploads_path, target_path)

Subscribers

People subscribed via source and target branches