idiap_devtools.gitlab.runners

Functions

get_project(gl, name)

Retrieve one single project.

get_projects_from_file(gl, filename)

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

get_projects_from_group(gl, name)

Return a list with all projects in a GitLab group.

get_projects_from_runner(gl, runner)

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

get_runner_from_description(gl, descr)

Retrieve a runner object matching the description, or raises.

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

Retrieve 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]

Retrieve one single project.

Return type:

Project

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

Return a list with all projects in a GitLab group.

Return type:

list[Project]

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

Retrieve 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]

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

Return type:

list[Project]