تعريف 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.
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.
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
سلسله.
معرف الخطوة. القيم المقبولة: [-_A-Za-z0-9]*.
timeoutInMinutes
سلسله.
حان الوقت للانتظار حتى تكتمل هذه المهمة قبل أن يقتلها الخادم.
ملاحظة
قد يتم تكوين المسارات مع مهلة مستوى الوظيفة. إذا انقضى الفاصل الزمني لمهلة مستوى الوظيفة قبل اكتمال الخطوة، يتم إنهاء المهمة قيد التشغيل (بما في ذلك خطوتك)، حتى إذا تم تكوين الخطوة بفاصل زمني أطول timeoutInMinutes
. لمزيد من المعلومات، راجع المهلات.
retryCountOnTaskFailure
سلسله.
عدد عمليات إعادة المحاولة إذا فشلت المهمة.
الملاحظات
تقوم download
الكلمة الأساسية بتنزيل موارد البيانات الاصطناعية.
اعتمادا على نوع البيانات الاصطناعية المشار إليها (أو البيانات الاصطناعية)، download
يستدعي تنزيل البيانات الاصطناعية للبنية الأساسية لبرنامج ربط العمليات التجارية (للبيانات الاصطناعية للبنية الأساسية لبرنامج ربط العمليات التجارية، إذا كان المسار قيد التشغيل في خدمات Azure DevOps)، أو تنزيل البيانات الاصطناعية للبنية (للبيانات الاصطناعية للبناء)، أو تنزيل البيانات الاصطناعية من مشاركة الملفات (للبيانات الاصطناعية لمشاركة الملفات).
موقع تنزيل البيانات الاصطناعية
يتم تنزيل البيانات الاصطناعية من البنية الأساسية لبرنامج ربط العمليات التجارية الحالية إلى $(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