Share via


onSuccessOrFailureHook 정의

롤백 작업 또는 클린 단계를 실행하는 데 사용됩니다.

onSuccessOrFailureHook:
  failure: # Runs on failure of any step.
    steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # A list of steps to run.
    pool: string | pool # Pool where post on failure steps will run.
  success: # Runs on success of all of the steps.
    steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # A list of steps to run.
    pool: string | pool # Pool where on success steps will run.

참고

이 정의는 지원 정의이며 파이프라인에서 직접 사용하기 위한 것이 아닙니다. 이 문서에서는 이 지원 형식에 대한 YAML 구문을 제공하지만 사용 예제는 표시하지 않습니다. 이 형식에서 지원하는 정의를 사용하는 방법에 대한 자세한 내용은 다음 정의 링크를 참조하세요.

이 정의를 참조하는 정의: jobs.deployment.strategy.runOnce, jobs.deployment.strategy.rolling, jobs.deployment.strategy.canary

속성

failureonFailureHook.
모든 단계의 실패 시 실행됩니다.

successonSuccessHook.
모든 단계의 성공에 따라 실행됩니다.