다음을 통해 공유


steps.download 정의

download 단계에서는 현재 실행과 연결된 아티팩트 또는 파이프라인 리소스로 연결된 다른 Azure Pipeline에서 아티팩트를 다운로드합니다.

steps:
- download: string # Required as first property. Specify current, pipeline resource identifier, or none to disable automatic download.
  artifact: string # Artifact name.
  patterns: string # Pattern to download files from artifact.
  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:
- download: string # Required as first property. Specify current, pipeline resource identifier, or none to disable automatic download.
  artifact: string # Artifact name.
  patterns: string # Pattern to download files from artifact.
  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.

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

속성

download 문자열입니다. 첫 번째 속성으로 필요합니다.
자동 다운로드를 사용하지 않도록 설정하려면 현재, 파이프라인 리소스 식별자 또는 없음을 지정합니다.

artifact 문자열입니다.
아티팩트 이름입니다.

patterns 문자열입니다.
아티팩트에서 파일을 다운로드하는 패턴입니다.

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

부울continueOnError.
실패하더라도 계속 실행하시겠습니까?

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

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

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

문자열 사전을 env.
변수를 사용하여 프로세스의 환경에 매핑합니다.

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

timeoutInMinutes 문자열입니다.
서버가 종료되기 전에 이 작업이 완료되기를 기다리는 시간입니다.

비고

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

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

비고

download 키워드는 아티팩트 리소스를 아티팩트 다운로드 위치에 지정된 폴더로 다운로드합니다.

참조된 아티팩트(또는 아티팩트) 유형에 따라 download 호출 파이프라인 아티팩트 다운로드(파이프라인 아티팩트, 파이프라인이 Azure DevOps Services에서 실행 중인 경우), 빌드 아티팩트 다운로드(빌드 아티팩트용) 또는 파일 공유 (파일 공유 아티팩트용)에서 아티팩트 다운로드를.

아티팩트 다운로드 위치

현재 파이프라인의 아티팩트가 $(Pipeline.Workspace)/<artifact name>다운로드됩니다.

연결된 파이프라인 리소스의 아티팩트가 $(Pipeline.Workspace)/<pipeline resource identifier>/<artifact name>다운로드됩니다.

배포 작업에서 자동 다운로드

현재 파이프라인 및 관련 파이프라인 리소스에서 사용 가능한 모든 아티팩트가 배포 작업에서 자동으로 다운로드되고 배포에 사용할 수 있게 됩니다.

다운로드를 방지하려면 download: none지정합니다.

예시

steps:
- download: current  # refers to artifacts published by current pipeline
  artifact: WebApp
  patterns: '**/.js'
  displayName: Download artifact WebApp
- download: MyAppA   # downloads artifacts available as part of the pipeline resource specified as MyAppA

참고하십시오