Trees | Indices | Help |
---|
|
Representation of one build in one copr
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
SCM_COMMIT = 'commit'
|
|||
SCM_PULL_REQUEST = 'pull-request'
|
|||
__table_args__ = db.Index('build_canceled', "canceled"), db.In
|
|||
id = db.Column(db.Integer, primary_key= True)
|
|||
pkgs = db.Column(db.Text)
|
|||
built_packages = db.Column(db.Text)
|
|||
pkg_version = db.Column(db.Text)
|
|||
canceled = db.Column(db.Boolean, default= False)
|
|||
repos = db.Column(db.Text)
|
|||
submitted_on = db.Column(db.Integer, nullable= False)
|
|||
result_dir = db.Column(db.Text, default= '', server_default= '
|
|||
memory_reqs = db.Column(db.Integer, default= constants.DEFAULT
|
|||
timeout = db.Column(db.Integer, default= constants.DEFAULT_BUI
|
|||
enable_net = db.Column(db.Boolean, default= False, server_defa
|
|||
source_type = db.Column(db.Integer, default= helpers.BuildSour
|
|||
source_json = db.Column(db.Text)
|
|||
fail_type = db.Column(db.Integer, default= FailTypeEnum("unset"))
|
|||
is_background = db.Column(db.Boolean, default= False, server_d
|
|||
source_status = db.Column(db.Integer, default= StatusEnum("wai
|
|||
srpm_url = db.Column(db.Text)
|
|||
user_id = db.Column(db.Integer, db.ForeignKey("user.id"), inde
|
|||
user = db.relationship("User", backref= db.backref("builds"))
|
|||
copr_id = db.Column(db.Integer, db.ForeignKey("copr.id"), inde
|
|||
copr = db.relationship("Copr", backref= db.backref("builds"))
|
|||
package_id = db.Column(db.Integer, db.ForeignKey("package.id")
|
|||
package = db.relationship("Package")
|
|||
chroots = association_proxy("build_chroots", "mock_chroot")
|
|||
batch_id = db.Column(db.Integer, db.ForeignKey("batch.id"))
|
|||
batch = db.relationship("Batch", backref= db.backref("builds"))
|
|||
module_id = db.Column(db.Integer, db.ForeignKey("module.id"),
|
|||
module = db.relationship("Module", backref= db.backref("builds"))
|
|||
copr_dir_id = db.Column(db.Integer, db.ForeignKey("copr_dir.id
|
|||
copr_dir = db.relationship("CoprDir", backref= db.backref("bui
|
|||
scm_object_id = db.Column(db.Text)
|
|||
scm_object_type = db.Column(db.Text)
|
|||
scm_object_url = db.Column(db.Text)
|
|||
update_callback = db.Column(db.Text)
|
|||
submitted_by = db.Column(db.Text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return build status.
|
Return text representation of status of this build.
|
Find out if this build is cancelable.
|
Find out if this build is repeatable. Build is repeatable only if sources has been imported.
|
Find out if this build is in finished state. Build is finished only if all its build_chroots are in finished state or the build was canceled.
|
|
Find out if this build is persistent. This property is inherited from the project.
|
|
Usage: SQLAlchObject.to_dict() => returns a flat dict of the object SQLAlchObject.to_dict({"foo": {}}) => returns a dict of the object and will include a flat dict of object foo inside of that SQLAlchObject.to_dict({"foo": {"bar": {}}, "spam": {}}) => returns a dict of the object, which will include dict of foo (which will include dict of bar) and dict of spam. Options can also contain two special values: __columns_only__ and __columns_except__ If present, the first makes only specified fields appear, the second removes specified fields. Both of these fields must be either strings (only works for one field) or lists (for one and more fields). SQLAlchObject.to_dict({"foo": {"__columns_except__": ["id"]}, "__columns_only__": "name"}) => The SQLAlchObject will only put its "name" into the resulting dict, while "foo" all of its fields except "id". Options can also specify whether to include foo_id when displaying related foo object (__included_ids__, defaults to True). This doesn"t apply when __columns_only__ is specified.
|
Return tuple (submitter_string, submitter_link), while the submitter_link may be empty if we are not able to detect it wisely.
|
Return a string unique to project + submitter. At this level copr backend later applies builder user-VM separation policy (VMs are only re-used for builds which have the same build.sandbox value)
|
|
__table_args__
|
result_dir
|
memory_reqs
|
timeout
|
enable_net
|
source_type
|
is_background
|
source_status
|
user_id
|
copr_id
|
package_id
|
module_id
|
copr_dir_id
|
copr_dir
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |