Part of lp.buildmaster.model.buildfarmjobbehaviour View In Hierarchy
Known subclasses: lp.code.model.recipebuilder.RecipeBuildBehaviour, lp.snappy.model.snapbuildbehaviour.SnapBuildBehaviour, lp.soyuz.model.binarypackagebuildbehaviour.BinaryPackageBuildBehaviour, lp.soyuz.model.livefsbuildbehaviour.LiveFSBuildBehaviour, lp.translations.model.translationtemplatesbuildbehaviour.TranslationTemplatesBuildBehaviour
All build-farm job behaviours should inherit from this.
| Method | __init__ | Store a reference to the job_type with which we were created. |
| Method | archive | Undocumented |
| Method | distro_arch_series | Undocumented |
| Method | Undocumented | |
| Method | setBuilder | The builder should be set once and not changed. |
| Method | determineFilesToSend | The default behaviour is to send no files. |
| Method | extraBuildArgs | The default behaviour is to send only common extra arguments. |
| Method | composeBuildRequest | Undocumented |
| Method | verifyBuildRequest | The default behaviour is a no-op. |
| Method | dispatchBuildToSlave | See IBuildFarmJobBehaviour. |
| Method | getUploadDirLeaf | See IPackageBuild. |
| Method | transferSlaveFileToLibrarian | Transfer a file from the slave to the librarian. |
| Method | getLogFileName | Return the preferred file name for this job's log. |
| Method | getLogFromSlave | Return a Deferred which fires when the log is in the librarian. |
| Method | storeLogFromSlave | See IBuildFarmJob. |
| Method | verifySuccessfulBuild | See IBuildFarmJobBehaviour. |
| Method | handleStatus | See IBuildFarmJobBehaviour. |
| Method | handleSuccess | Handle a package that built successfully. |
| Parameters | file_sha1 | The file's sha1, which is how the file is addressed in the slave XMLRPC protocol. Specially, the file_sha1 'buildlog' will cause the build log to be retrieved and gzipped. |
| filename | The name of the file to be given to the librarian file alias. | |
| private | True if the build is for a private archive. | |
| Returns | A Deferred that calls back with a librarian file alias. | |
IBuildFarmJobBehaviour.IBuildFarmJobBehaviour.Once built successfully, we pull the files, store them in a directory, store build information and push them through the uploader.