HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gitlab — Ruby wrapper for the GitLab API. Some subcommands such as `ctl` have their own usage documentation.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
therubycommandcligitlabwrapperfor

Problem

How to use the gitlab command: Ruby wrapper for the GitLab API. Some subcommands such as ctl have their own usage documentation. More information: <https://narkoz.github.io/gitlab/>.

Solution

gitlab — Ruby wrapper for the GitLab API. Some subcommands such as ctl have their own usage documentation. More information: <https://narkoz.github.io/gitlab/>.

Create a new project:
gitlab create_project {{project_name}}


Get info about a specific commit:
gitlab commit {{project_name}} {{commit_hash}}


Get info about jobs in a CI pipeline:
gitlab pipeline_jobs {{project_name}} {{pipeline_id}}


Start a specific CI job:
gitlab job_play {{project_name}} {{job_id}}

Code Snippets

Create a new project

gitlab create_project {{project_name}}

Get info about a specific commit

gitlab commit {{project_name}} {{commit_hash}}

Get info about jobs in a CI pipeline

gitlab pipeline_jobs {{project_name}} {{pipeline_id}}

Start a specific CI job

gitlab job_play {{project_name}} {{job_id}}

Context

tldr-pages: common/gitlab

Revisions (0)

No revisions yet.