تعريف 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.
يعمل على نجاح جميع الخطوات.