idiap_devtools.gitlab.runners#

Functions

get_project(gl, name)

Retrieves one single project.

get_projects_from_file(gl, filename)

Retrieves a list of projects based on lines of a file.

get_projects_from_group(gl, name)

Returns a list with all projects in a GitLab group.

get_projects_from_runner(gl, runner)

Retrieves a list of all projects that include a particular runner.

get_runner_from_description(gl, descr)

Retrieves a runner object matching the description, or raises.

idiap_devtools.gitlab.runners.get_runner_from_description(gl, descr)[source]#

Retrieves a runner object matching the description, or raises.

Parameters:
  • gl (Gitlab) – gitlab service instance

  • descr (str) – the runner description

Return type:

Runner

Returns:

The runner object, if one is found matching the description

Raises:

RuntimeError – if no runner matching the description is found.

idiap_devtools.gitlab.runners.get_project(gl, name)[source]#

Retrieves one single project.

Return type:

Project

idiap_devtools.gitlab.runners.get_projects_from_group(gl, name)[source]#

Returns a list with all projects in a GitLab group.

Return type:

list[Project]

idiap_devtools.gitlab.runners.get_projects_from_runner(gl, runner)[source]#

Retrieves a list of all projects that include a particular runner.

Return type:

list[Project]

idiap_devtools.gitlab.runners.get_projects_from_file(gl, filename)[source]#

Retrieves a list of projects based on lines of a file.

Return type:

list[Project]