Package backend :: Package mockremote :: Class MockRemote
[hide private]
[frames] | no frames]

Class MockRemote

source code


Instance Methods [hide private]
 
__init__(self, builder_host=None, job=None, repos=None, callback=None, macros=None, opts=None, lock=None)
:param builder_host: builder hostname or ip
source code
 
check(self)
Checks that MockRemote configuration and environment are correct.
source code
 
_get_pkg_destpath(self, pkg) source code
 
add_pubkey(self)
Adds pubkey.gpg with public key to ``chroot_dir`` using `copr_username` and `copr_projectname` from self.job.
source code
 
sign_built_packages(self)
Sign built rpms using `copr_username` and `copr_projectname` from self.job by means of obs-sign.
source code
 
do_createrepo(self) source code
 
on_success_build(self) source code
 
prepare_build_dir(self) source code
 
build_pkg_and_process_results(self) source code
 
build_pkg(self)
Build pkg defined in self.job
source code
 
mark_dir_with_build_id(self)
Places "build.info" which contains job build_id into the directory with downloaded files.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
log_to_file_safe(filepath, to_out_list, to_err_list) source code
Properties [hide private]
  chroot_dir
  pkg

Inherited from object: __class__

Method Details [hide private]

__init__(self, builder_host=None, job=None, repos=None, callback=None, macros=None, opts=None, lock=None)
(Constructor)

source code 

:param builder_host: builder hostname or ip

:param backend.job.BuildJob job: Job object with the following attributes::
    :ivar timeout: ssh timeout
    :ivar destdir: target directory to put built packages
    :ivar chroot: chroot config name/base to use in the mock build
                   (e.g.: fedora20_i386 )
    :ivar buildroot_pkgs: whitespace separated string with additional
                       packages that should present during build
    :ivar build_id: copr build.id
    :ivar pkg: pkg to build


:param repos: additional repositories for mock
:param backend.mockremote.callback.DefaultCallBack callback: object with hooks for notifications
                                 about build progress

:param macros: {    "copr_username": ...,
                    "copr_projectname": ...,
                    "vendor": ...}
:param multiprocessing.Lock lock: instance of Lock shared between
    Copr backend process
:param DefaultCallback callback: build progress handler

:param Bunch opts: builder options, used keys::
    :ivar build_user: user to run as/connect as on builder systems
    :ivar do_sign: enable package signing, require configured
        signer host and correct /etc/sign.conf
    :ivar frontend_base_url: url to the copr frontend
    :ivar results_baseurl: base url for the built results
    :ivar remote_basedir: basedir on builder
    :ivar remote_tempdir: tempdir on builder

# Removed:
# :param cont: if a pkg fails to build, continue to the next one--
# :param bool recurse: if more than one pkg and it fails to build,
#                      try to build the rest and come back to it

Overrides: object.__init__

check(self)

source code 

Checks that MockRemote configuration and environment are correct.

:raises MockRemoteError: when configuration is wrong or
    some expected resource is unavailable

sign_built_packages(self)

source code 

    Sign built rpms
     using `copr_username` and `copr_projectname` from self.job
     by means of obs-sign. If user builds doesn't have a key pair
     at sign service, it would be created through ``copr-keygen``

:param chroot_dir: Directory with rpms to be signed
:param pkg: path to the source package

build_pkg(self)

source code 

Build pkg defined in self.job

:return: build_details


Property Details [hide private]

chroot_dir

Get Method:
unreachable.chroot_dir(self)

pkg

Get Method:
unreachable.pkg(self)