resources.builds.build definition

A build resource used to reference artifacts from a run.

builds:
- build: string # Required as first property. Alias or name of build artifact.
  type: string # Required. Name of the artifact type.
  connection: string # Required. Name of the connection. This connection will be used for all the communication related to this artifact.
  source: string # Required. Name of the source definition/build/job.
  version: string
  branch: string
  trigger: none | true # When the artifact mentioned in this build resource completes a build, it is allowed to trigger this pipeline.
builds:
- build: string # Required as first property. Alias or name of build artifact.
  type: string # Required. Name of the artifact type.
  connection: string # Required. Name of the connection. This connection will be used for all the communication related to this artifact.
  source: string # Required. Name of the source definition/build/job.
  version: string
  branch: string

Definitions that reference this definition: resources.builds

Properties

build string. Required as first property.
Alias or name of build artifact. Acceptable values: [-_A-Za-z0-9]*.

type string. Required.
Name of the artifact type.

connection string. Required.
Name of the connection. This connection will be used for all the communication related to this artifact.

source string. Required.
Name of the source definition/build/job.

version string.

branch string.

trigger string.
When the artifact mentioned in this build resource completes a build, it is allowed to trigger this pipeline. none | true.

Remarks

If you have an external CI build system that produces artifacts, you can consume artifacts with a build resource. A build resource can be any external CI systems like Jenkins, TeamCity, CircleCI, and so on.

Important

Triggers are only supported for hosted Jenkins where Azure DevOps has line of sight with Jenkins server.

Examples

resources:
  builds:
  - build: Spaceworkz
    type: Jenkins
    connection: MyJenkinsServer 
    source: SpaceworkzProj   # name of the jenkins source project
    trigger: true

See also

Define resources in YAML