def addStepWithName(self, name): """The Build is setting up, and has added a new BuildStep to its list. Create a BuildStepStatus object to which it can send status updates.""" s = BuildStepStatus(self, self.master, len(self.steps)) s.setName(name) self.steps.append(s) return s
def addStepWithName(self, name): """The Build is setting up, and has added a new BuildStep to its list. Create a BuildStepStatus object to which it can send status updates.""" s = BuildStepStatus(self, self.master, len(self.steps)) s.setName(name) self.steps.append(s) return s
def addStepWithName(self, name, step_type, index=None): """The Build is setting up, and has added a new BuildStep to its list. Create a BuildStepStatus object to which it can send status updates.""" s = BuildStepStatus(self, self.master, len(self.steps), step_type) s.setName(name) if index is None: self.steps.append(s) else: self.steps.insert(index, s) return s