Skip to content

Instantly share code, notes, and snippets.

@juhijariwala
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juhijariwala/9f65eaa5d5a4a5ccbd9d to your computer and use it in GitHub Desktop.
Save juhijariwala/9f65eaa5d5a4a5ccbd9d to your computer and use it in GitHub Desktop.
Pipelines, stages and jobs API operations

Pipelines API operations:

  1. Schedule
  • URL: http://ci.example.com/go/api/pipelines/pipeline1/schedule
  • DATA: -
  1. Release Lock
  • URL: http://ci.example.com/go/api/pipelines/pipeline1/releaseLock
  • DATA: -
  1. Pause
  • URL: https://ci.example.com/go/api/pipelines/pipeline1/pause
  • DATA: 'pauseCause=take some rest'
  1. Unpause
  • URL: https://ci.example.com/go/api/pipelines/pipeline1/unpause
  • DATA: -

Stages API operations:

  1. Cancel
  • URL: https://ci.example.com/go/api/stages/myPipeline/myStages/cancel
  • DATA: -
  1. Re-run
  • URL: https://ci.example.com/go/api/myPipeline/1/stage1/1/re-run
  • DATA: -
  1. Schedule
  • URL: https://ci.example.com/go/api/myPipeline/1/stage1/run
  • DATA: -

Jobs API Operation:

  1. Re-run
  • URL: https://ci.example.com/go/api/pipelines/myPipeline/1/stage1/1/job1/re-run
  • DATA: -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment