ملاحظة
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
jobs:
- deployment: string # Required as first property. Name of the deployment job, A-Z, a-z, 0-9, and underscore. The word deploy is a keyword and is unsupported as the deployment name.
displayName: string # Human-readable name for the deployment.
dependsOn: string | [ string ] # Any jobs which must complete before this one.
condition: string # Evaluate this condition expression to determine whether to run this deployment.
continueOnError: string # Continue running even on failure?
timeoutInMinutes: string # Time to wait for this job to complete before the server kills it.
cancelTimeoutInMinutes: string # Time to wait for the job to cancel before forcibly terminating it.
variables: variables | [ variable ] # Deployment-specific variables.
pool: string | pool # Pool where this job will run.
environment: string | environment # Target environment name and optionally a resource name to record the deployment history; format: environment-name.resource-name.
strategy: strategy # Execution strategy for this deployment.
workspace: # Workspace options on the agent.
clean: outputs | resources | all # What to clean up before the job runs.
uses: # Any resources required by this job that are not already referenced.
repositories: [ string ] # Repository references.
pools: [ string ] # Pool references.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
templateContext: # Deployment related information passed from a pipeline when extending a template.
jobs:
- deployment: string # Required as first property. Name of the deployment job, A-Z, a-z, 0-9, and underscore. The word deploy is a keyword and is unsupported as the deployment name.
displayName: string # Human-readable name for the deployment.
dependsOn: string | [ string ] # Any jobs which must complete before this one.
condition: string # Evaluate this condition expression to determine whether to run this deployment.
continueOnError: string # Continue running even on failure?
timeoutInMinutes: string # Time to wait for this job to complete before the server kills it.
cancelTimeoutInMinutes: string # Time to wait for the job to cancel before forcibly terminating it.
variables: variables | [ variable ] # Deployment-specific variables.
pool: string | pool # Pool where this job will run.
environment: string | environment # Target environment name and optionally a resource name to record the deployment history; format: environment-name.resource-name.
strategy: strategy # Execution strategy for this deployment.
workspace: # Workspace options on the agent.
clean: outputs | resources | all # What to clean up before the job runs.
uses: # Any resources required by this job that are not already referenced.
repositories: [ string ] # Repository references.
pools: [ string ] # Pool references.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
jobs:
- deployment: string # Required as first property. Name of the deployment job, A-Z, a-z, 0-9, and underscore. The word deploy is a keyword and is unsupported as the deployment name.
displayName: string # Human-readable name for the deployment.
dependsOn: string | [ string ] # Any jobs which must complete before this one.
condition: string # Evaluate this condition expression to determine whether to run this deployment.
continueOnError: string # Continue running even on failure?
timeoutInMinutes: string # Time to wait for this job to complete before the server kills it.
cancelTimeoutInMinutes: string # Time to wait for the job to cancel before forcibly terminating it.
variables: variables | [ variable ] # Deployment-specific variables.
pool: string | pool # Pool where this job will run.
environment: string | environment # Target environment name and optionally a resource name to record the deployment history; format: environment-name.resource-name.
strategy: strategy # Execution strategy for this deployment.
workspace: # Workspace options on the agent.
clean: outputs | resources | all # What to clean up before the job runs.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
خصائص
سلسلة deployment
. مطلوب كخاصية أولى.
اسم مهمة التوزيع، A-Z، a-z، 0-9، والتسطير السفلي. الكلمة deploy هي كلمة أساسية وغير مدعومة كاسم نشر.
سلسلة displayName
.
اسم قابل للقراءة البشرية للنشر.
سلسلة dependsOn
| قائمة السلاسل.
أي وظائف يجب إكمالها قبل هذه المهمة.
سلسلة condition
.
تقييم تعبير الشرط هذا لتحديد ما إذا كان سيتم تشغيل هذا النشر.
سلسلة continueOnError
.
متابعة التشغيل حتى عند الفشل؟
سلسلة timeoutInMinutes
.
الوقت لانتظار اكتمال هذه المهمة قبل أن يقتلها الخادم.
سلسلة cancelTimeoutInMinutes
.
الوقت لانتظار إلغاء المهمة قبل إنهائها قسرا.
المتغيرات variables
.
المتغيرات الخاصة بالنشر.
تجمع pool
.
Pool حيث سيتم تشغيل هذه المهمة.
environment
jobs.deployment.environment .
اسم البيئة الهدف واسم المورد اختياريا لتسجيل محفوظات التوزيع؛ format: environment-name.resource-name.
strategy
jobs.deployment.strategy .
استراتيجية التنفيذ لهذا النشر.
مساحة عمل workspace
.
خيارات مساحة العمل على العامل.
لمزيد من المعلومات حول مساحات العمل، بما في ذلك الخيارات النظيفة، راجع موضوع مساحة العمل في Jobs.
uses
jobs.job.uses.
يحدد الموارد المطلوبة من قبل هذه المهمة التي لم تتم الإشارة إليها بالفعل في مكان آخر في المسار، على سبيل المثال عن طريق خطوة السداد مع الخروج أو مورد المستودع. لمزيد من المعلومات حول uses
، راجع تحديد نطاق تخويل الوظيفةوعلامتي "استخدام" للموارد التي تم الإعلان عنها مسبقا.
container
jobs.job.container .
اسم مورد الحاوية.
services
قاموس السلسلة.
موارد الحاوية لتشغيلها كحاوية خدمة.
templateContext
templateContext.
المعلومات المتعلقة بالنشر التي تم تمريرها من البنية الأساسية لبرنامج ربط العمليات التجارية عند توسيع قالب. راجع الملاحظات لمزيد من المعلومات. لمزيد من المعلومات حول templateContext
، راجع يمكن الآن تمرير قوالب مسارات YAML الموسعة معلومات السياق للمراحل والمهام والنشرات وقوالب - استخدم templateContext لتمرير الخصائص إلى القوالب.
ملاحظات
في مسارات YAML، يوصي فريق البنية الأساسية لبرنامج ربط العمليات التجارية بوضع خطوات التوزيع في مهمة توزيع.
لمزيد من المعلومات حول templateContext
، راجع يمكن الآن تمرير قوالب مسارات YAML الموسعة معلومات السياق للمراحل والمهام والنشرات وقوالب - استخدم templateContext لتمرير الخصائص إلى القوالب.
امثله
jobs:
# track deployments on the environment
- deployment: DeployWeb
displayName: deploy Web App
pool:
vmImage: ubuntu-latest
# creates an environment if it doesn't exist
environment: 'smarthotel-dev'
strategy:
# default deployment strategy, more coming...
runOnce:
deploy:
steps:
- script: echo my first deployment