Module Gitlab::Client::Builds
In: lib/gitlab/client/builds.rb

Methods

Public Instance methods

Gets a single build.

@example

  Gitlab.build(5, 36)

@param [Integer] project The ID of a project. @param [Integer] id The ID of a build. @return [Gitlab::ObjectifiedHash]

Gets build artifacts.

@example

  Gitlab.build_artifacts(1, 8)

@param [Integer] project The ID of a project. @param [Integer] id The ID of a build. @return [Gitlab::FileResponse]

Cancels a build.

@example

  Gitlab.build_cancel(5, 1)

@param [Integer] project The ID of a project. @param [Integer] id The ID of a build. @return [Gitlab::ObjectifiedHash] The builds changes.

Erase a single build of a project (remove build artifacts and a build trace)

@example

  Gitlab.build_erase(5, 1)

@param [Integer] project The ID of a project. @param [Integer] id The ID of a build. @return [Gitlab::ObjectifiedHash] The build‘s changes.

Retry a build.

@example

  Gitlab.build_retry(5, 1)

@param [Integer] project The ID of a project. @param [Integer] id The ID of a build. @return [Array<Gitlab::ObjectifiedHash>] The builds changes.

Gets a list of project builds.

@example

  Gitlab.builds(5)
  Gitlab.builds(5, { per_page: 10, page:  2 })

@param [Integer] project The ID of a project. @param [Hash] options A customizable set of options. @option options [Integer] :page The page number. @option options [Integer] :per_page The number of results per page. @param [Integer] project The ID of a project. @return [Array<Gitlab::ObjectifiedHash>]

Gets a list of builds for specific commit in a project.

@example

  Gitlab.commit_builds(5, 'asdf')
  Gitlab.commit_builds(5, 'asdf', { per_page: 10, page: 2 })

@param [Integer] project The ID of a project. @param [String] sha The SHA checksum of a commit. @param [Hash] options A customizable set of options. @option options [Integer] :page The page number. @option options [Integer] :per_page The number of results per page. @return [Array<Gitlab::ObjectifiedHash>] The list of builds.

[Validate]