Share via


pr 정의

끌어오기 요청 트리거는 끌어오기 요청 빌드가 실행되도록 하는 분기를 지정합니다.

이 정의를 참조하는 정의: 파이프라인

구현

구현 설명
pr: none 끌어오기 요청 트리거를 사용하지 않도록 설정합니다.
pr: 문자열 목록 실행을 트리거하는 분기 목록입니다.
pr: autoCancel, 분기, 경로, 초안 완전한 제어를 위한 전체 구문입니다.
구현 설명
pr: none 끌어오기 요청 트리거를 사용하지 않도록 설정합니다.
pr: 문자열 목록 실행을 트리거하는 분기 목록입니다.
pr: autoCancel, 분기, 경로 완전한 제어를 위한 전체 구문입니다.
구현 설명
pr: none 끌어오기 요청 트리거를 사용하지 않도록 설정합니다.
pr: 문자열 목록 실행을 트리거하는 분기 목록입니다.
pr: 분기, 경로 완전한 제어를 위한 전체 구문입니다.

설명

끌어오기 요청 트리거를 지정하지 않으면 모든 분기에 대한 끌어오기 요청은 빌드를 트리거합니다.

키워드(keyword) 대한 pr 세 가지 고유한 구문 옵션이 있습니다. 여기에는 포함할 분기 목록, PR 트리거를 사용하지 않도록 설정하는 방법 및 완전한 제어를 위한 전체 구문이 있습니다.

중요

YAML PR 트리거는 GitHub 및 Bitbucket Cloud에서만 지원됩니다. Azure Repos Git을 사용하는 경우 빌드 유효성 검사에 대한 분기 정책을 구성하여 유효성 검사를 위해 빌드 파이프라인을 트리거할 수 있습니다.

중요

YAML PR 트리거는 GitHub에서만 지원됩니다. Azure Repos Git을 사용하는 경우 빌드 유효성 검사에 대한 분기 정책을 구성하여 유효성 검사를 위해 빌드 파이프라인을 트리거할 수 있습니다.

또는 에 exclude 대한 branches 절이 없는 절을 include 지정하는 경우 절에서 include 를 지정하는 *paths것과 같습니다.

중요

끌어오기 요청 트리거를 지정하면 포함을 위해 명시적으로 구성한 분기만 파이프라인을 트리거합니다. 포함이 먼저 처리된 다음 해당 목록에서 제외가 제거됩니다. 제외를 지정하지만 포함 항목이 없으면 아무 것도 트리거되지 않습니다.

pr: none

끌어오기 요청 트리거를 사용하지 않도록 설정합니다.

pr: none # Disable pull request triggers.

pr 문자열. 허용되는 값: 없음.

끌어오기 요청 트리거를 사용하지 않도록 설정합니다.

예제

사용 안 함 구문:

pr: none # will disable PR builds (but not CI builds)

pr: 문자열 목록

실행을 트리거하는 분기 목록입니다.

pr: [ string ] # List of branches that trigger a run.

목록 형식

형식 Description
문자열 실행을 트리거하는 분기 목록입니다.

설명

목록 구문은 끌어오기 요청이 발생하거나 끌어오기 요청이 발생한 원본 분기에 푸시할 때 실행을 트리거하는 분기 목록을 지정합니다.

예제

목록 구문:

pr:
- main
- develop

pr: autoCancel, 분기, 경로, 초안

끌어오기 요청 트리거를 완전히 제어해야 하는 경우 전체 구문을 사용합니다.

pr:
  autoCancel: boolean # Whether to cancel running PR builds when a new commit lands in the branch. Default: true.
  branches: # Branch names to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  paths: # File paths to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  drafts: boolean # Whether to start a run when a draft PR is created. Default: true.

속성

autoCancel부울입니다.
새 커밋이 분기에 있을 때 PR 빌드 실행을 취소할지 여부입니다. 기본값: true입니다.

branchesincludeExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 분기 이름입니다.

pathsincludeExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 파일 경로입니다.

drafts부울입니다.
초안 PR을 만들 때 실행을 시작할지 여부입니다. 기본값: true입니다.

pr: autoCancel, 분기, 경로

완전한 제어를 위한 전체 구문입니다.

pr:
  autoCancel: boolean # Whether to cancel running PR builds when a new commit lands in the branch. Default: true.
  branches: # Branch names to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  paths: # File paths to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.

속성

autoCancel부울입니다.
새 커밋이 분기에 있을 때 PR 빌드 실행을 취소할지 여부입니다. 기본값: true입니다.

branchesincludeExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 분기 이름입니다.

pathsincludeExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 파일 경로입니다.

pr: 분기, 경로

완전한 제어를 위한 전체 구문입니다.

pr:
  branches: # Branch names to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.
  paths: # File paths to include or exclude for triggering a run.
    include: [ string ] # List of items to include.
    exclude: [ string ] # List of items to exclude.

속성

branchesincludeExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 분기 이름입니다.

pathsincludeExcludeFilters.
실행을 트리거하기 위해 포함하거나 제외할 파일 경로입니다.

예제

전체 구문:

pr:
  branches:
    include:
    - features/*
    exclude:
    - features/experimental/*
  paths:
    exclude:
    - README.md

추가 정보

끌어오기 요청 트리거 및 이를 지정하는 방법에 대해 자세히 알아봅니다.