| Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
|---|---|
| License | BSD3 |
| Maintainer | [email protected] |
| Stability | stable |
| Safe Haskell | None |
| Language | Haskell2010 |
GitLab.API.Pipelines
Description
Synopsis
- pipelines :: Project -> GitLab (Maybe [Pipeline])
- pipeline :: Project -> Int -> GitLab (Either (Response ByteString) (Maybe Pipeline))
- pipelineTestReport :: Project -> Int -> GitLab (Either (Response ByteString) (Maybe TestReport))
- newPipeline :: Project -> Text -> GitLab (Either (Response ByteString) (Maybe Pipeline))
- retryPipeline :: Project -> Int -> GitLab (Either (Response ByteString) (Maybe Pipeline))
- cancelPipelineJobs :: Project -> Int -> GitLab (Either (Response ByteString) (Maybe Pipeline))
- deletePipeline :: Project -> Int -> GitLab (Either (Response ByteString) (Maybe ()))
List project pipelines
List pipelines in a project. Child pipelines are not included in the results, but you can get child pipeline individually. Returns Nothing if access to the pipelines are forbidden e.g. for a project without any files.
Get a single pipeline
Arguments
| :: Project | the project |
| -> Int | The ID of a pipeline |
| -> GitLab (Either (Response ByteString) (Maybe Pipeline)) |
Get one pipeline from a project.
Get a pipeline’s test report
Arguments
| :: Project | the project |
| -> Int | the pipeline ID |
| -> GitLab (Either (Response ByteString) (Maybe TestReport)) |
get a pipeline’s test report. Since GitLab 13.0.
Create a new pipeline
Arguments
| :: Project | the project |
| -> Text | The branch or tag to run the pipeline on. |
| -> GitLab (Either (Response ByteString) (Maybe Pipeline)) |
Create a new pipeline. Since GitLab 14.6.
Retry jobs in a pipeline
Arguments
| :: Project | the project |
| -> Int | The ID of a pipeline |
| -> GitLab (Either (Response ByteString) (Maybe Pipeline)) |
Retry a pipeline. Since GitLab 14.6.
Cancel a pipeline’s jobs
Arguments
| :: Project | the project |
| -> Int | The ID of a pipeline |
| -> GitLab (Either (Response ByteString) (Maybe Pipeline)) |
Cancel a pipeline's jobs.