Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: scripts/slave/recipe_modules/archive/example.py

Issue 2112413002: Allowing zip_build to use a file name given in build_url. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Untouching blank line. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'archive', 6 'archive',
7 'recipe_engine/json', 7 'recipe_engine/json',
8 'recipe_engine/path', 8 'recipe_engine/path',
9 'recipe_engine/platform', 9 'recipe_engine/platform',
10 'recipe_engine/properties', 10 'recipe_engine/properties',
11 ] 11 ]
12 12
13 TEST_HASH_MAIN='5e3250aadda2b170692f8e762d43b7e8deadbeef' 13 TEST_HASH_MAIN='5e3250aadda2b170692f8e762d43b7e8deadbeef'
14 TEST_COMMIT_POSITON_MAIN='refs/heads/B1@{#123456}' 14 TEST_COMMIT_POSITON_MAIN='refs/heads/B1@{#123456}'
15 15
16 TEST_HASH_COMPONENT='deadbeefdda2b170692f8e762d43b7e8e7a96686' 16 TEST_HASH_COMPONENT='deadbeefdda2b170692f8e762d43b7e8e7a96686'
17 TEST_COMMIT_POSITON_COMPONENT='refs/heads/master@{#234}' 17 TEST_COMMIT_POSITON_COMPONENT='refs/heads/master@{#234}'
18 18
19 19
20 def RunSteps(api): 20 def RunSteps(api):
21 if 'build_archive_url' in api.properties:
22 api.archive.zip_and_upload_build(
23 step_name='zip build',
24 target=api.path['checkout'].join('/Release/out'))
25 return
21 api.archive.clusterfuzz_archive( 26 api.archive.clusterfuzz_archive(
22 build_dir=api.path['slave_build'].join('src', 'out', 'Release'), 27 build_dir=api.path['slave_build'].join('src', 'out', 'Release'),
23 update_properties=api.properties.get('update_properties'), 28 update_properties=api.properties.get('update_properties'),
24 gs_bucket='chromium', 29 gs_bucket='chromium',
25 gs_acl=api.properties.get('gs_acl', ''), 30 gs_acl=api.properties.get('gs_acl', ''),
26 archive_prefix='chrome-asan', 31 archive_prefix='chrome-asan',
27 archive_subdir_suffix=api.properties.get('archive_subdir_suffix', ''), 32 archive_subdir_suffix=api.properties.get('archive_subdir_suffix', ''),
28 revision_dir=api.properties.get('revision_dir'), 33 revision_dir=api.properties.get('revision_dir'),
29 primary_project=api.properties.get('primary_project'), 34 primary_project=api.properties.get('primary_project'),
30 ) 35 )
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 api.test('cf_archiving_component_svn_with_git') + 110 api.test('cf_archiving_component_svn_with_git') +
106 api.platform('linux', 64) + 111 api.platform('linux', 64) +
107 api.properties( 112 api.properties(
108 update_properties=update_properties, 113 update_properties=update_properties,
109 revision_dir='x10', 114 revision_dir='x10',
110 primary_project='x10', 115 primary_project='x10',
111 ) + 116 ) +
112 api.override_step_data( 117 api.override_step_data(
113 'listdir build_dir', api.json.output(['chrome'])) 118 'listdir build_dir', api.json.output(['chrome']))
114 ) 119 )
120
121 yield(
122 api.test('zip_and_upload_custom_location') +
123 api.platform('linux', 64) +
124 api.properties(
125 build_archive_url='gs://dummy-bucket/Linux Release/full-build.zip')
126 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698