Home | History | Annotate | Download | only in hosts

Lines Matching full:build_url

982     def _get_build_info_from_build_url(cls, build_url):
985 @param build_url: The url to use for downloading Android artifacts.
990 @raise AndroidInstallError: If failed to parse build_url.
992 if not build_url:
993 raise AndroidInstallError('Need build_url to download image files.')
996 match = re.match(DEVSERVER_URL_REGEX, build_url)
1004 'Failed to parse build url: %s\nError: %s' % (build_url, e))
1008 def _download_file(self, build_url, file, dest_dir):
1011 @param build_url: The url to use for downloading Android artifacts.
1016 src_url = os.path.join(build_url, file)
1026 def stage_android_image_files(self, build_url):
1027 """Download required image files from the given build_url to a local
1030 @param build_url: The url to use for downloading Android artifacts.
1035 build_info = self._get_build_info_from_build_url(build_url)
1043 self._download_file(build_url, image_file, image_dir)
1054 def stage_brillo_image_files(self, build_url):
1055 """Download required brillo image files from the given build_url to a
1058 @param build_url: The url to use for downloading Android artifacts.
1063 build_info = self._get_build_info_from_build_url(build_url)
1072 self._download_file(build_url, image_file, image_dir)
1086 """Stage a build on a devserver and return the build_url and devserver.
1106 def install_android(self, build_url, build_local_path=None, wipe=True,
1118 @param build_url: The url to use for downloading Android artifacts.
1136 build_local_path = self.stage_android_image_files(build_url)
1168 build_url)
1171 def install_brillo(self, build_url, build_local_path=None):
1182 @param build_url: The url to use for downloading Android artifacts.
1197 build_local_path = self.stage_brillo_image_files(build_url)
1218 build_url)
1221 def machine_install(self, build_url=None, build_local_path=None, wipe=True,
1225 @param build_url: The url to use for downloading Android artifacts.
1226 pattern: http://$devserver:###/static/$build. If build_url is
1238 if not build_url and self._parser.options.image:
1239 build_url, _ = self.stage_build_for_install(
1243 build_url=build_url, build_local_path=build_local_path,
1247 build_url=build_url, build_local_path=build_local_path)
1252 return build_url.split('static/')[-1]