definice resources.builds.build

Prostředek sestavení, který se používá k odkazům na artefakty ze spuštění.

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

Definice, které odkazují na tuto definici: resources.builds

Vlastnosti

build Řetězec. Požadováno jako první vlastnost.
Alias nebo název artefaktu sestavení Přijatelné hodnoty: [-_A-Za-z0-9]*.

type Řetězec. Povinná hodnota.
Název typu artefaktu.

connection Řetězec. Povinná hodnota.
Název připojení. Toto připojení se použije pro veškerou komunikaci související s tímto artefaktem.

source Řetězec. Povinná hodnota.
Název definice zdroje, sestavení nebo úlohy.

version Řetězec.

branch Řetězec.

trigger Řetězec.
Když artefakt uvedený v tomto prostředku sestavení dokončí sestavení, může tento kanál aktivovat. none | Pravda.

Poznámky

Pokud máte externí systém sestavení CI, který vytváří artefakty, můžete artefakty využívat s prostředkem sestavení. Prostředek sestavení může být jakýkoli externí systém CI, jako je Jenkins, TeamCity, CircleCI atd.

Důležité

Triggery jsou podporovány pouze pro hostované Jenkinse, u kterých je Azure DevOps v dohledu se serverem Jenkins.

Příklady

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

Viz také

Definování prostředků v YAML