Beispiel #1
0
 def reorder_elements_to_please_go(self):
     # see https://github.com/SpringerSBM/gomatic/issues/6
     move_all_to_end(self.__element, "environment_variables")
     move_all_to_end(self.__element, "tasks")
     move_all_to_end(self.__element, "tabs")
     move_all_to_end(self.__element, "resources")
     move_all_to_end(self.__element, "artifacts")
Beispiel #2
0
    def reorder_elements_to_please_go(self):
        materials = self.materials
        self.remove_materials()
        for material in self.__reordered_materials_to_reduce_thrash(materials):
            self.__add_material(material)

        move_all_to_end(self.element, "params")
        move_all_to_end(self.element, "timer")
        move_all_to_end(self.element, "environmentvariables")
        move_all_to_end(self.element, "materials")
        move_all_to_end(self.element, "stage")

        for stage in self.stages:
            stage.reorder_elements_to_please_go()
Beispiel #3
0
    def reorder_elements_to_please_go(self):
        move_all_to_end(self.__xml_root, 'pipelines')
        move_all_to_end(self.__xml_root, 'templates')
        move_all_to_end(self.__xml_root, 'environments')
        move_all_to_end(self.__xml_root, 'agents')

        for pipeline in self.pipelines:
            pipeline.reorder_elements_to_please_go()
        for template in self.templates:
            template.reorder_elements_to_please_go()
    def reorder_elements_to_please_go(self):
        move_all_to_end(self.__xml_root, 'pipelines')
        move_all_to_end(self.__xml_root, 'templates')
        move_all_to_end(self.__xml_root, 'environments')
        move_all_to_end(self.__xml_root, 'agents')

        for pipeline in self.pipelines:
            pipeline.reorder_elements_to_please_go()
        for template in self.templates:
            template.reorder_elements_to_please_go()
Beispiel #5
0
    def reorder_elements_to_please_go(self):
        move_all_to_end(self.element, "environmentvariables")
        move_all_to_end(self.element, "jobs")

        for job in self.jobs:
            job.reorder_elements_to_please_go()
Beispiel #6
0
 def reorder_elements_to_please_go(self):
     move_all_to_end(self.element, 'pipeline')