resources.builds.build definíció

Egy builderőforrás, amely futtatásból származó összetevőkre hivatkozik.

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

A definícióra hivatkozó definíciók: resources.builds

Tulajdonságok

build Karakterlánc. Első tulajdonságként kötelező megadni.
A buildösszetevő aliasa vagy neve. Elfogadható értékek: [-_A-Za-z0-9]*.

type Karakterlánc. Kötelező.
Az összetevőtípus neve.

connection Karakterlánc. Kötelező.
A kapcsolat neve. Ez a kapcsolat az összetevővel kapcsolatos összes kommunikációhoz használható.

source Karakterlánc. Kötelező.
A forrásdefiníció/build/feladat neve.

version Karakterlánc.

branch Karakterlánc.

trigger Karakterlánc.
Amikor az ebben a builderőforrásban említett összetevő befejez egy buildet, aktiválhatja ezt a folyamatot. nincs | Igaz.

Megjegyzések

Ha egy külső CI buildrendszerrel rendelkezik, amely összetevőket állít elő, az összetevőket felhasználhatja egy builderőforrással. A builderőforrás lehet bármilyen külső CI-rendszer, például a Jenkins, a TeamCity, a CircleCI stb.

Fontos

Az eseményindítók csak az üzemeltetett Jenkins esetében támogatottak, ahol az Azure DevOps a Jenkins-kiszolgálóval szem előtt van.

Példák

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

Lásd még

Erőforrások definiálása a YAML-ben