resources.builds.build definition

Zasób kompilacji używany do odwoływanie się do artefaktów z przebiegu.

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

Definicje odwołujące się do tej definicji: resources.builds

Właściwości

build Ciąg. Wymagane jako pierwsza właściwość.
Alias lub nazwa artefaktu kompilacji. Dopuszczalne wartości: [-_A-Za-z0-9]*.

type Ciąg. Wymagane.
Nazwa typu artefaktu.

connection Ciąg. Wymagane.
Nazwa połączenia. To połączenie będzie używane dla całej komunikacji związanej z tym artefaktem.

source Ciąg. Wymagane.
Nazwa definicji/kompilacji/zadania źródłowego.

version Ciąg.

branch Ciąg.

trigger Ciąg.
Gdy artefakt wymieniony w tym zasobie kompilacji ukończy kompilację, może wyzwolić ten potok. brak | True.

Uwagi

Jeśli masz zewnętrzny system kompilacji ciągłej integracji, który generuje artefakty, możesz użyć artefaktów z zasobem kompilacji. Zasób kompilacji może być dowolnymi zewnętrznymi systemami ciągłej integracji, takimi jak Jenkins, TeamCity, CircleCI itd.

Ważne

Wyzwalacze są obsługiwane tylko w przypadku hostowanego serwera Jenkins, gdzie usługa Azure DevOps ma zasięg wzroku z serwerem Jenkins.

Przykłady

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

Zobacz też

Definiowanie zasobów w języku YAML