Share via


steps.publish tanımı

anahtar publish sözcüğü, bir dosya veya klasörü diğer işlerin ve işlem hatlarının kullanabileceği bir işlem hattı yapıtı olarak yayımlar (karşıya yükler).

anahtar publish sözcüğü, bir dosya veya klasörü diğer işlerin ve işlem hatlarının kullanabileceği bir işlem hattı yapıtı olarak yayımlar (karşıya yükler).

Önemli

Bu publish adım yalnızca Azure DevOps Services desteklenir. Azure DevOps Server kullanıyorsanız, Azure DevOps Server kullanıyorsanız Derleme Yapıtlarını Yayımla'yaPipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead. benzer bir hata iletisi alırsınız.

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.

Bu tanıma başvuran tanımlar: adımlar

Özellikler

publish Dize. İlk özellik olarak gereklidir.
Yayımlama adımı, PublishPipelineArtifact@1 görevi için bir kısayoldur. Görev, bir dosya veya klasörü diğer işlerin ve işlem hatlarının kullanabileceği bir işlem hattı yapıtı olarak yayımlar (karşıya yükler).

artifact Dize.
Yapıt adı.

condition Dize.
Bu görevin çalıştırılıp çalıştırılmayacağını belirlemek için bu koşul ifadesini değerlendirin.

continueOnErrorBoole değeri.
Hata durumunda bile çalışmaya devam mı edin?

displayName Dize.
Görevin insan tarafından okunabilen adı.

targethedef.
Bu görevin çalıştırıldığı ortam.

enabledBoole değeri.
İş çalıştırıldığında bu görev çalıştırılacak mı?

env dize sözlüğü.
İşlemin ortamına eşlenen değişkenler.

name Dize.
Adımın kimliği. Kabul edilebilir değerler: [-_A-Za-z0-9]*.

timeoutInMinutes Dize.
Sunucu sonlandırmadan önce bu görevin tamamlanmasını bekleme süresi.

Not

İşlem hatları iş düzeyi zaman aşımı ile yapılandırılabilir. İş düzeyi zaman aşımı aralığı adımınız tamamlanmadan önce geçerse, adım daha uzun timeoutInMinutes bir aralıkla yapılandırılmış olsa bile çalışan iş (adımınız dahil) sonlandırılır. Daha fazla bilgi için bkz . Zaman Aşımları.

retryCountOnTaskFailure Dize.
Görev başarısız olursa yeniden deneme sayısı.

Açıklamalar

Anahtar publish sözcüğü, İşlem Hattı Yapıtını Yayımla görevi için bir kısayoldur.

Önemli

Bu publish adım yalnızca Azure DevOps Services desteklenir. Azure DevOps Server kullanıyorsanız, Azure DevOps Server kullanıyorsanız Derleme Yapıtlarını Yayımla'yaPipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead. benzer bir hata iletisi alırsınız.

Yapıtları yayımlama hakkında daha fazla bilgi edinin.

Örnekler

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

Ayrıca bkz.