Пример #1
0
  def ConstructStage(self, template, new_config=True):
    template_path = config_stages.GS_GE_TEMPLATE_BUCKET + template
    branch = config_stages.GetBranchName(template)
    stage = config_stages.UpdateConfigStage(self._run, self.buildstore,
                                            template_path, branch,
                                            self.chromite_dir, True)

    if new_config:
      fake_config_path = os.path.join(self.chromite_dir, 'config',
                                      config_stages.GE_BUILD_CONFIG_FILE)
    else:
      fake_config_path = os.path.join(self.chromite_dir, 'cbuildbot',
                                      config_stages.GE_BUILD_CONFIG_FILE)

    osutils.Touch(fake_config_path, makedirs=True)

    stage._SetupConfigPaths()
    return stage
Пример #2
0
 def ConstructStageForRelease(self):
     template = 'build_config.release-R50-7978.B.json'
     r50_path = config_stages.GS_GE_TEMPLATE_BUCKET + template
     branch = config_stages.GetBranchName(template)
     return config_stages.UpdateConfigStage(self._run, r50_path, branch,
                                            self.chromite_dir)
Пример #3
0
 def ConstructStage(self):
     template = 'build_config.ToT.json'
     tot_path = config_stages.GS_GE_TEMPLATE_BUCKET + template
     branch = config_stages.GetBranchName(template)
     return config_stages.UpdateConfigStage(self._run, tot_path, branch,
                                            self.chromite_dir)
Пример #4
0
 def ConstructStage(self, template):
   template_path = config_stages.GS_GE_TEMPLATE_BUCKET + template
   branch = config_stages.GetBranchName(template)
   return config_stages.UpdateConfigStage(
       self._run, template_path, branch, self.chromite_dir, True)