steps.publish definition

publish تنشر الكلمة الأساسية (تحمل) ملفا أو مجلدا كقطعة اصطناعية للبنية الأساسية لبرنامج ربط العمليات التجارية يمكن أن تستهلكها الوظائف والتدفقات الأخرى.

publish تنشر الكلمة الأساسية (تحمل) ملفا أو مجلدا كقطعة اصطناعية للبنية الأساسية لبرنامج ربط العمليات التجارية يمكن أن تستهلكها الوظائف والتدفقات الأخرى.

هام

publish يتم دعم الخطوة على خدمات Azure DevOps فقط. إذا كنت تستخدمه على Azure DevOps Server، فستتلقى رسالة خطأ مشابهة لاستخدام Pipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead.Publish Build Artifacts إذا كنت تستخدم Azure DevOps Server.

steps:
- publish: string # Required as first property. The publish step is a shortcut for the PublishPipelineArtifact@1 task. The task publishes (uploads) a file or folder as a pipeline artifact that other jobs and pipelines can consume.
  artifact: string # Artifact name.
  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:
- publish: string # Required as first property. The publish step is a shortcut for the PublishPipelineArtifact@1 task. The task publishes (uploads) a file or folder as a pipeline artifact that other jobs and pipelines can consume.
  artifact: string # Artifact name.
  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:
- publish: string # Required as first property. The publish step is a shortcut for the PublishPipelineArtifact@1 task. The task publishes (uploads) a file or folder as a pipeline artifact that other jobs and pipelines can consume.
  artifact: string # Artifact name.
  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.

التعريفات التي تشير إلى هذا التعريف: الخطوات

الخصائص

publish سلسله. مطلوب كخاصية أولى.
خطوة النشر هي اختصار للمهمة PublishPipelineArtifact@1. تنشر المهمة (تحمل) ملفا أو مجلدا كقطعة اصطناعية للبنية الأساسية لبرنامج ربط العمليات التجارية يمكن أن تستهلكها المهام والتدفقات الأخرى.

artifact سلسله.
اسم البيانات الاصطناعية.

condition سلسله.
قم بتقييم تعبير الشرط هذا لتحديد ما إذا كنت تريد تشغيل هذه المهمة.

continueOnErrorمنطقي.
هل تستمر في التشغيل حتى عند الفشل؟

displayName سلسله.
اسم يمكن للبشر قراءته للمهمة.

targetالهدف.
البيئة التي سيتم فيها تشغيل هذه المهمة.

enabledمنطقي.
هل تقوم بتشغيل هذه المهمة عند تشغيل المهمة؟

env قاموس السلسلة.
المتغيرات المراد تعيينها في بيئة العملية.

name سلسله.
معرف الخطوة. القيم المقبولة: [-_A-Za-z0-9]*.

timeoutInMinutes سلسله.
حان الوقت للانتظار حتى تكتمل هذه المهمة قبل أن يقتلها الخادم.

ملاحظة

قد يتم تكوين المسارات مع مهلة مستوى الوظيفة. إذا انقضى الفاصل الزمني لمهلة مستوى الوظيفة قبل اكتمال الخطوة، يتم إنهاء المهمة قيد التشغيل (بما في ذلك خطوتك)، حتى إذا تم تكوين الخطوة بفاصل زمني أطول timeoutInMinutes . لمزيد من المعلومات، راجع المهلات.

retryCountOnTaskFailure سلسله.
عدد عمليات إعادة المحاولة إذا فشلت المهمة.

الملاحظات

publish الكلمة الأساسية هي اختصار لمهمة Publish Pipeline Artifact.

هام

publish يتم دعم الخطوة على خدمات Azure DevOps فقط. إذا كنت تستخدمه على Azure DevOps Server، فستتلقى رسالة خطأ مشابهة لاستخدام Pipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead.Publish Build Artifacts إذا كنت تستخدم Azure DevOps Server.

تعرف على المزيد حول نشر البيانات الاصطناعية.

أمثلة

steps:
- publish: $(Build.SourcesDirectory)/build
  artifact: WebApp
  displayName: Publish artifact WebApp

راجع أيضًا