File: pipelines.yml

package info (click to toggle)
libgitlab-api-v4-perl 0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: perl: 5,960; sh: 838; python: 63; makefile: 12
file content (23 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- pipelines: pipelines = GET projects/:project_id/pipelines?
- pipeline: pipeline = GET projects/:project_id/pipelines/:pipeline_id
- method: create_pipeline
  spec: pipeline = POST projects/:project_id/pipeline?
  note: |
    Git ref (branch or tag) name must be specified in the C<ref> field of the
    C<%params> hash. It's also possible to pass variables to a pipeline in
    the C<variables> field like in the following example:

        my $pipeline = $api->create_pipeline(
            $project_id,
            {
                'ref'     => 'master',
                variables => [
                    { 'key' => 'VARIABLE1', 'value' => 'VALUE1' },
                    { 'key' => 'VARIABLE2', 'value' => 'VALUE2' },
                ],
            },
        );
- retry_pipeline_jobs: pipeline = POST projects/:project_id/pipelines/:pipeline_id/retry
- cancel_pipeline_jobs: pipeline = POST projects/:project_id/pipelines/:pipeline_id/cancel
- delete_pipeline: DELETE projects/:project_id/pipelines/:pipeline_id