steps.task 정의

단계는 task 작업을 실행합니다.

모든 작업은 다음과 같은 공통 속성 집합을 지원합니다.

steps:
- task: string # Required as first property. Name of the task to run.
  inputs: # Inputs for the task.
    string: string # Name/value pairs
  condition: string # Evaluate this condition expression to determine whether to run this task.
  continueOnError: boolean # Continue running even on failure?
  displayName: string # Human-readable name for the task.
  target: string | target # Environment in which to run this task.
  enabled: boolean # Run this task when the job runs?
  env: # Variables to map into the process's environment.
    string: string # Name/value pairs
  name: string # ID of the step.
  timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.
  retryCountOnTaskFailure: string # Number of retries if the task fails.
steps:
- task: string # Required as first property. Name of the task to run.
  inputs: # Inputs for the task.
    string: string # Name/value pairs
  condition: string # Evaluate this condition expression to determine whether to run this task.
  continueOnError: boolean # Continue running even on failure?
  displayName: string # Human-readable name for the task.
  target: string | target # Environment in which to run this task.
  enabled: boolean # Run this task when the job runs?
  env: # Variables to map into the process's environment.
    string: string # Name/value pairs
  name: string # ID of the step.
  timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.
steps:
- task: string # Required as first property. Name of the task to run.
  inputs: # Inputs for the task.
    string: string # Name/value pairs
  condition: string # Evaluate this condition expression to determine whether to run this task.
  continueOnError: boolean # Continue running even on failure?
  displayName: string # Human-readable name for the task.
  enabled: boolean # Run this task when the job runs?
  env: # Variables to map into the process's environment.
    string: string # Name/value pairs
  name: string # ID of the step.
  timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.

이 정의를 참조하는 정의: 단계

속성

task 문자열. 첫 번째 속성으로 필요합니다.
실행할 작업의 이름입니다.

inputs 문자열 사전입니다.
작업에 대한 입력입니다.

condition 문자열.
이 조건 식을 평가하여 이 작업을 실행할지 여부를 결정합니다.

continueOnError부울입니다.
오류 발생 시에도 계속 실행하시겠습니까?

displayName 문자열.
작업에 대한 사람이 읽을 수 있는 이름입니다.

target대상입니다.
이 작업을 실행할 환경입니다.

enabled부울입니다.
작업이 실행되면 이 작업을 실행하시겠습니까?

env 문자열 사전입니다.
프로세스 환경에 매핑할 변수입니다.

name 문자열.
단계의 ID입니다. 허용되는 값: [-_A-Za-z0-9]*.

timeoutInMinutes 문자열.
서버가 이 작업을 종료하기 전에 이 작업이 완료되기를 기다리는 시간입니다. 예를 들어 10분 시간 제한을 구성하려면 를 사용합니다 timeoutInMinutes: 10.

참고

파이프라인은 작업 수준 시간 제한으로 구성할 수 있습니다. 단계가 완료되기 전에 작업 수준 제한 시간 간격이 경과하면 단계가 더 긴 timeoutInMinutes 간격으로 구성된 경우에도 실행 중인 작업(단계 포함)이 종료됩니다. 자세한 내용은 시간 제한을 참조하세요.

retryCountOnTaskFailure 문자열.
작업이 실패할 경우 다시 시도 횟수입니다.

설명

작업은 파이프라인의 구성 요소입니다. 선택할 수 있는 작업 카탈로그 가 있습니다.

명령 모드를 지정하지 않으면 구조체를 다음으로 target 단축할 수 있습니다.

- task:
  target: string  # container name or the word 'host'

일반적인 작업 속성

모든 작업은 및 inputs외에도 공통 속성 집합을 name 지원합니다. 일반적인 작업 속성 목록은 이전 속성 섹션을 참조하세요. 이러한 속성을 구성하는 방법에 대한 자세한 내용은 작업 제어 옵션작업 환경 변수를 참조하세요.

조건, 시간 제한 및단계 대상에 대해 자세히 알아봅니다.

steps:
- task: VSBuild@1
  displayName: Build
  timeoutInMinutes: 120
  inputs:
    solution: '**\*.sln'

참고 항목