Skip to content
agallou edited this page Apr 10, 2012 · 4 revisions

Branch API

GET /branch/:branch_name/status

Returns the status of a branch on Jenkins-Khan

Parameters

  • branch_name (required) The branch name

Returns

  • status The status of the branch. Could be :
  • FAILURE
  • SUCCESS
  • RUNNING
  • WAITING
  • UNREACHABLE
  • UNSTABLE
  • ABORTED
  • DELAYED
  • null

Example: GET /branch/ticket_101/status

{
  "status" : "FAILURE"
}

GET /branch/:branch_name/delete

Deletes a build branch (and all its jobs) from Jenkins Khan.

Parameters

  • branch_name (required) The branch name

Returns

  • status: 0 if the deletion has been successful; non-zero if an error has occurred.
  • message: an informational text-message.

GET /branch/:branch_name/rebuild

Directly launches all the jobs for the giving branch.

Parameters

  • branch_name (required) The branch name

Returns

  • status: 0 if the deletion has been successful; non-zero if an error has occurred.
  • message: an informational text-message if an error has occured. default is "OK".

GET /branch/:branch_name/rebuild/delayed

Add all the jobs for the giving branch to the delayed queue.

Parameters

  • branch_name (required) The branch name

Returns

  • status: 0 if the deletion has been successful; non-zero if an error has occurred.
  • message: an informational text-message if an error has occured. default is "OK".

Delayed API

GET /delayed/all/launch

Launch all the jobs that was in the delayed queue.

Returns

  • status: 0 if the deletion has been successful; non-zero if an error has occurred.
  • message: an informational text-message if an error has occured. default is "OK".