definicja potoku
Potok to jedno lub więcej etapów opisujących proces CI/CD (ciągłej integracji/ciągłego wdrażania).
Implementacje
Implementacja | Opis |
---|---|
potok : etapy | Potok z etapami. |
potok : rozszerza | Potok rozszerzający szablon. |
potok : zadania | Potok z zadaniami i jednym niejawnymi etapami. |
potok : kroki | Potok z krokami i jednym niejawnymi zadaniami. |
Uwagi
Potok to jedno lub więcej etapów opisujących proces CI/CD (ciągłej integracji/ciągłego wdrażania). Etapy to główne podziały w potoku. Etapy "Kompilowanie tej aplikacji", "Uruchamianie tych testów" i "Wdrażanie w przedprodukcji" są dobrymi przykładami.
Etap to jedno lub więcej zadań, które są jednostkami pracy, które można przypisać do tej samej maszyny. Można rozmieścić zarówno etapy, jak i zadania na grafy zależności. Przykłady obejmują "Uruchom ten etap przed tym etapem" i "To zadanie zależy od danych wyjściowych tego zadania".
Zadanie to liniowa seria kroków. Kroki mogą być zadaniami, skryptami lub odwołaniami do szablonów zewnętrznych.
Ta hierarchia jest odzwierciedlana w strukturze pliku YAML, na przykład:
- Pipeline
- Stage A
- Job 1
- Step 1.1
- Step 1.2
- ...
- Job 2
- Step 2.1
- Step 2.2
- ...
- Stage B
- ...
Proste potoki nie wymagają wszystkich tych poziomów. Na przykład w kompilacji pojedynczego zadania można pominąć kontenery dla etapów i zadań, ponieważ istnieją tylko kroki. Ponieważ wiele opcji przedstawionych w tym artykule nie jest wymaganych i ma dobre wartości domyślne, definicje YAML są mało prawdopodobne, aby uwzględnić wszystkie z nich.
Jeśli masz jeden etap, możesz pominąć słowo kluczowe stages
i bezpośrednio określić zadania słowa kluczowego:
# ... other pipeline-level keywords
jobs: [ job | template ]
Jeśli masz jeden etap i jedno zadanie, możesz pominąć słowa kluczowe stages
i jobs
, a następnie bezpośrednio określić kroki słowa kluczowe:
# ... other pipeline-level keywords
steps: [ script | bash | pwsh | powershell | checkout | task | template | ... ]
Użyj właściwości name
, aby skonfigurować numer uruchomienia potoku. Aby uzyskać więcej informacji, zobacz Konfigurowanie numerów uruchamiania lub kompilacji.
potok: etapy
Potok z etapami.
stages: [ stage | template ] # Required. Stages are groups of jobs that can run without human intervention.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
appendCommitMessageToRunName: boolean # Append the commit message to the build number. The default is true.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
stages
etapy. To jest wymagane.
Etapy to grupy zadań, które mogą być uruchamiane bez interwencji człowieka.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
appendCommitMessageToRunName
wartość logiczna.
Dołącz komunikat zatwierdzenia do numeru kompilacji. Wartość domyślna to true.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: etapy
Potok z etapami.
stages: [ stage | template ] # Required. Stages are groups of jobs that can run without human intervention.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
stages
etapy. To jest wymagane.
Etapy to grupy zadań, które mogą być uruchamiane bez interwencji człowieka.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
Zobacz Konfigurowanie numerów uruchamiania lub kompilacji dla dozwolonych symboli zastępczych.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: etapy
Potok z etapami.
stages: [ stage | template ] # Required. Stages are groups of jobs that can run without human intervention.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
stages
etapy. To jest wymagane.
Etapy to grupy zadań, które mogą być uruchamiane bez interwencji człowieka.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
potok: etapy
Potok z etapami.
stages: [ stage | template ] # Required. Stages are groups of jobs that can run without human intervention.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
stages
etapy. To jest wymagane.
Etapy to grupy zadań, które mogą być uruchamiane bez interwencji człowieka.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
Przykłady
trigger:
- main
pool:
vmImage: ubuntu-latest
stages:
- stage: CI
jobs:
- job: CIWork
steps:
- script: "Do CI work"
- stage: Test
jobs:
- job: TestWork
steps:
- script: "Do test work"
potok: rozszerza
Potok rozszerzający szablon.
extends: # Required. Extends a template.
template: string # The template referenced by the pipeline to extend.
parameters: # Parameters used in the extend.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
appendCommitMessageToRunName: boolean # Append the commit message to the build number. The default is true.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
extends
rozszerza. To jest wymagane.
rozszerza szablon.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
appendCommitMessageToRunName
wartość logiczna.
Dołącz komunikat zatwierdzenia do numeru kompilacji. Wartość domyślna to true.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: rozszerza
Potok rozszerzający szablon.
extends: # Required. Extends a template.
template: string # The template referenced by the pipeline to extend.
parameters: # Parameters used in the extend.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
extends
rozszerza. To jest wymagane.
rozszerza szablon.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: rozszerza
Potok rozszerzający szablon.
extends: # Required. Extends a template.
template: string # The template referenced by the pipeline to extend.
parameters: # Parameters used in the extend.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
extends
rozszerza. To jest wymagane.
rozszerza szablon.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
potok: rozszerza
Potok rozszerzający szablon.
extends: # Required. Extends a template.
template: string # The template referenced by the pipeline to extend.
parameters: # Parameters used in the extend.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
extends
rozszerza. To jest wymagane.
rozszerza szablon.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
potok: zadania
Potok z zadaniami i jednym niejawnymi etapami.
jobs: [ job | deployment | template ] # Required. Jobs represent units of work which can be assigned to a single agent or server.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
appendCommitMessageToRunName: boolean # Append the commit message to the build number. The default is true.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
jobs
zadania. To jest wymagane.
Zadania reprezentują jednostki pracy, które można przypisać do jednego agenta lub serwera.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
appendCommitMessageToRunName
wartość logiczna.
Dołącz komunikat zatwierdzenia do numeru kompilacji. Wartość domyślna to true.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: zadania
Potok z zadaniami i jednym niejawnymi etapami.
jobs: [ job | deployment | template ] # Required. Jobs represent units of work which can be assigned to a single agent or server.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
jobs
zadania. To jest wymagane.
Zadania reprezentują jednostki pracy, które można przypisać do jednego agenta lub serwera.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: zadania
Potok z zadaniami i jednym niejawnymi etapami.
jobs: [ job | deployment | template ] # Required. Jobs represent units of work which can be assigned to a single agent or server.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
jobs
zadania. To jest wymagane.
Zadania reprezentują jednostki pracy, które można przypisać do jednego agenta lub serwera.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
potok: zadania
Potok z zadaniami i jednym niejawnymi etapami.
jobs: [ job | deployment | template ] # Required. Jobs represent units of work which can be assigned to a single agent or server.
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
jobs
zadania. To jest wymagane.
Zadania reprezentują jednostki pracy, które można przypisać do jednego agenta lub serwera.
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
Przykłady
trigger:
- main
pool:
vmImage: ubuntu-latest
jobs:
- job: PreWork
steps:
- script: "Do pre-work"
- job: PostWork
pool: windows-latest
steps:
- script: "Do post-work using a different hosted image"
potok: kroki
Potok z krokami i jednym niejawnymi zadaniami.
steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # Required. A list of steps to run in this job.
strategy: strategy # Execution strategy for this job.
continueOnError: string # Continue running even on failure?
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
workspace: # Workspace options on the agent.
clean: outputs | resources | all # Which parts of the workspace should be scorched before fetching.
name: string # Pipeline run number.
appendCommitMessageToRunName: boolean # Append the commit message to the build number. The default is true.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
steps
kroki. To jest wymagane.
Lista kroków do uruchomienia w tym zadaniu.
strategy
jobs.job.strategy.
strategia wykonywania dla tego zadania.
continueOnError
ciąg.
kontynuować działanie nawet w przypadku awarii?
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
container
jobs.job.container.
nazwa zasobu kontenera.
services
słownik ciągów.
zasoby kontenera do uruchamiania jako kontenera usługi.
workspace
obszaru roboczego.
opcje obszaru roboczego na agencie.
name
ciąg.
numer uruchomienia potoku.
appendCommitMessageToRunName
wartość logiczna.
Dołącz komunikat zatwierdzenia do numeru kompilacji. Wartość domyślna to true.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: kroki
Potok z krokami i jednym niejawnymi zadaniami.
steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # Required. A list of steps to run in this job.
strategy: strategy # Execution strategy for this job.
continueOnError: string # Continue running even on failure?
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
workspace: # Workspace options on the agent.
clean: outputs | resources | all # Which parts of the workspace should be scorched before fetching.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
lockBehavior: sequential | runLatest # Behavior lock requests from this stage should exhibit in relation to other exclusive lock requests.
Właściwości
steps
kroki. To jest wymagane.
Lista kroków do uruchomienia w tym zadaniu.
strategy
jobs.job.strategy.
strategia wykonywania dla tego zadania.
continueOnError
ciąg.
kontynuować działanie nawet w przypadku awarii?
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
container
jobs.job.container.
nazwa zasobu kontenera.
services
słownik ciągów.
zasoby kontenera do uruchamiania jako kontenera usługi.
workspace
obszaru roboczego.
opcje obszaru roboczego na agencie.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
lockBehavior
ciąg.
Żądania blokady zachowania z tego etapu powinny być wystawiane w odniesieniu do innych żądań blokady na wyłączność. sekwencyjny | runLatest.
potok: kroki
Potok z krokami i jednym niejawnymi zadaniami.
steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # Required. A list of steps to run in this job.
strategy: strategy # Execution strategy for this job.
continueOnError: string # Continue running even on failure?
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
workspace: # Workspace options on the agent.
clean: outputs | resources | all # Which parts of the workspace should be scorched before fetching.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
webhooks: [ webhook ] # List of webhooks.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
steps
kroki. To jest wymagane.
Lista kroków do uruchomienia w tym zadaniu.
strategy
jobs.job.strategy.
strategia wykonywania dla tego zadania.
continueOnError
ciąg.
kontynuować działanie nawet w przypadku awarii?
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
container
jobs.job.container.
nazwa zasobu kontenera.
services
słownik ciągów.
zasoby kontenera do uruchamiania jako kontenera usługi.
workspace
obszaru roboczego.
opcje obszaru roboczego na agencie.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
potok: kroki
Potok z krokami i jednym niejawnymi zadaniami.
steps: [ task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp ] # Required. A list of steps to run in this job.
strategy: strategy # Execution strategy for this job.
continueOnError: string # Continue running even on failure?
pool: string | pool # Pool where jobs in this pipeline will run unless otherwise specified.
container: string | container # Container resource name.
services: # Container resources to run as a service container.
string: string # Name/value pairs
workspace: # Workspace options on the agent.
clean: outputs | resources | all # Which parts of the workspace should be scorched before fetching.
name: string # Pipeline run number.
trigger: none | trigger | [ string ] # Continuous integration triggers.
parameters: [ parameter ] # Pipeline template parameters.
pr: none | pr | [ string ] # Pull request triggers.
schedules: [ cron ] # Scheduled triggers.
resources: # Containers and repositories used in the build.
builds: [ build ] # List of build resources referenced by the pipeline.
containers: [ container ] # List of container images.
pipelines: [ pipeline ] # List of pipeline resources.
repositories: [ repository ] # List of repository resources.
packages: [ package ] # List of package resources.
variables: variables | [ variable ] # Variables for this pipeline.
Właściwości
steps
kroki. To jest wymagane.
Lista kroków do uruchomienia w tym zadaniu.
strategy
jobs.job.strategy.
strategia wykonywania dla tego zadania.
continueOnError
ciąg.
kontynuować działanie nawet w przypadku awarii?
pool
puli.
puli, w której będą uruchamiane zadania w tym potoku, chyba że określono inaczej.
container
jobs.job.container.
nazwa zasobu kontenera.
services
słownik ciągów.
zasoby kontenera do uruchamiania jako kontenera usługi.
workspace
obszaru roboczego.
opcje obszaru roboczego na agencie.
name
ciąg.
numer uruchomienia potoku.
trigger
wyzwalacz.
wyzwalacze ciągłej integracji.
parameters
parametrów.
parametry szablonu potoku.
pr
pr.
wyzwalacze żądania ściągnięcia.
schedules
harmonogramy.
wyzwalacze zaplanowane.
resources
zasobów.
Kontenery i repozytoria używane w kompilacji.
variables
zmiennych.
zmienne dla tego potoku.
Przykłady
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- script: "Hello world!"