Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !9713
Merged
Created Mar 05, 2017 by Kamil Trzciński@ayufan🔴Maintainer0 of 9 tasks completed0/9 tasks
  • Review changes

  • Download
  • Email patches
  • Plain diff

Improve pipeline triggers API

  • Overview 23
  • Commits 13
  • Pipelines 6
  • Changes 25

What does this MR do?

This introduces /api/v4/projects/:id/trigger/pipeline that replaces /api/v3/projects/:id/trigger/builds.

Previous build trigger was user-less, the new pipeline trigger is user-aware. This MR introduces backend changes to make it user aware. The new create token with API will have a user assigned.

This MR also introduces trigger description and slightly improves API:

  1. POST /api/v4/projects/:id/triggers - creates a trigger with permission of current user and requires description,
  2. PUT /api/v4/projects/:id/triggers/:trigger_id - updates a trigger description,
  3. POST /api/v4/projects/:id/triggers/:trigger_id/take - takes ownership of trigger,
  4. POST /api/v4/projects/:id(/ref/:ref)/trigger/pipeline - returns Entities::Pipeline instead of Entities::TriggerRequest

This also contains a part of changes that are introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9277. And it's there to solve this story: https://gitlab.com/gitlab-org/gitlab-ce/issues/27156.

Does this MR meet the acceptance criteria?

  • Changelog entry added
  • Documentation created/updated
  • API support added
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Conform by the merge request performance guides
  • Conform by the style guides
  • Branch has no merge conflicts with master (if it does - rebase it please)
  • Squashed related commits together

What are the relevant issue numbers?

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: introduce-pipeline-triggers