definitie resources.builds.build

Een buildresource die wordt gebruikt om te verwijzen naar artefacten uit een uitvoering.

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

Definities die naar deze definitie verwijzen: resources.builds

Eigenschappen

build Tekenreeks. Vereist als eerste eigenschap.
Alias of naam van buildartefact. Acceptabele waarden: [-_A-Za-z0-9]*.

type Tekenreeks. Vereist.
Naam van het artefacttype.

connection Tekenreeks. Vereist.
Naam van de verbinding. Deze verbinding wordt gebruikt voor alle communicatie met betrekking tot dit artefact.

source Tekenreeks. Vereist.
Naam van de brondefinitie/build/taak.

version Tekenreeks.

branch Tekenreeks.

trigger Tekenreeks.
Wanneer het artefact dat wordt vermeld in deze buildresource een build voltooit, mag deze pijplijn worden geactiveerd. geen | Waar.

Opmerkingen

Als u een extern CI-buildsysteem hebt dat artefacten produceert, kunt u artefacten gebruiken met een buildresource. Een buildresource kan alle externe CI-systemen zijn, zoals Jenkins, TeamCity, CircleCI, enzovoort.

Belangrijk

Triggers worden alleen ondersteund voor gehoste Jenkins waarbij Azure DevOps zicht heeft op de Jenkins-server.

Voorbeelden

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

Zie ook

Resources definiƫren in YAML