다음을 통해 공유


resources.builds.build 정의

실행에서 아티팩트를 참조하는 데 사용되는 빌드 리소스입니다.

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.

이 정의를 참조하는 정의: resources.builds

속성

build 문자열입니다. 첫 번째 속성으로 필요합니다.
별칭 또는 빌드 아티팩트 이름입니다. 허용되는 값: [-_A-Za-z0-9]*.

type 문자열입니다. 필수 사항입니다.
아티팩트 형식의 이름입니다.

connection 문자열입니다. 필수 사항입니다.
연결의 이름입니다. 이 연결은 이 아티팩트 관련 모든 통신에 사용됩니다.

source 문자열입니다. 필수 사항입니다.
원본 정의/빌드/작업의 이름입니다.

version 문자열입니다.

branch 문자열입니다.

trigger 문자열입니다.
이 빌드 리소스에 언급된 아티팩트가 빌드를 완료하면 이 파이프라인을 트리거할 수 있습니다. none | 참.

비고

아티팩트를 생성하는 외부 CI 빌드 시스템이 있는 경우 빌드 리소스를 사용하여 아티팩트를 사용할 수 있습니다. 빌드 리소스는 Jenkins, TeamCity, CircleCI 등과 같은 외부 CI 시스템일 수 있습니다.

중요합니다

트리거는 Azure DevOps에서 Jenkins 서버와 시야를 가진 호스티드 Jenkins에 대해서만 지원됩니다.

예시

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

참고하십시오

YAML 리소스 정의