def factory(**build_options): BuildsLogic.create_new_from_scm(flask.g.user, copr, form.scm_type.data, form.clone_url.data, form.committish.data, form.subdirectory.data, form.spec.data, form.srpm_build_method.data, form.selected_chroots, **build_options)
def create_new_build(): return BuildsLogic.create_new_from_scm( flask.g.user, copr, scm_type='git', clone_url=form.clone_url.data, committish=form.branch.data, chroot_names=form.selected_chroots, background=form.background.data, )
def create_new_build(): return BuildsLogic.create_new_from_scm( flask.g.user, copr, scm_type=form.scm_type.data, clone_url=form.scm_url.data, committish=form.scm_branch.data, subdirectory=form.scm_subdir.data, spec=form.spec.data, chroot_names=form.selected_chroots, background=form.background.data, )
def create_new_build(): return BuildsLogic.create_new_from_scm( flask.g.user, copr, scm_type='git', clone_url=form.git_url.data, subdirectory=form.git_directory.data, committish=form.git_branch.data, srpm_build_method=('tito_test' if form.tito_test.data else 'tito'), chroot_names=form.selected_chroots, background=form.background.data, )
def create_new_build(): return BuildsLogic.create_new_from_scm( flask.g.user, copr, scm_type=form.scm_type.data, clone_url=form.clone_url.data, committish=form.committish.data, subdirectory=form.subdirectory.data, spec=form.spec.data, srpm_build_method=form.srpm_build_method.data, chroot_names=form.selected_chroots, background=form.background.data, copr_dirname=form.project_dirname.data, )