Difference between revisions of "Deployment:"

From wikieduonline
Jump to navigation Jump to search
(9 intermediate revisions by one other user not shown)
Line 3: Line 3:
  
 
  [[jobs:]]
 
  [[jobs:]]
  - deployment: string  # Name of the deployment. The word "deploy" is a keyword and is unsupported as the deployment name.
+
  - deployment: string  # Name of the deployment
 
   displayName: string  # friendly name to display in the UI
 
   displayName: string  # friendly name to display in the UI
 
   [[pool:]]                # not required for virtual machine resources
 
   [[pool:]]                # not required for virtual machine resources
Line 9: Line 9:
 
     demands: string | [ string ]
 
     demands: string | [ string ]
 
   workspace:
 
   workspace:
     clean: outputs | resources | all # what to clean up before the job runs
+
     clean: outputs | resources | all       # What to clean up before the job runs
   [[dependsOn:]] string
+
   [[dependsOn:]] string                       # Job name to create a dependency
 
   condition: string
 
   condition: string
 
   continueOnError: boolean                # 'true' if future jobs should run even if this job fails; defaults to 'false'
 
   continueOnError: boolean                # 'true' if future jobs should run even if this job fails; defaults to 'false'
Line 18: Line 18:
 
   cancelTimeoutInMinutes: nonEmptyString  # how much time to give 'run always even if cancelled tasks' before killing them
 
   cancelTimeoutInMinutes: nonEmptyString  # how much time to give 'run always even if cancelled tasks' before killing them
 
   variables:                              # several syntaxes, see specific section
 
   variables:                              # several syntaxes, see specific section
   [[environment:]] string # target environment name and optionally a resource name to record the deployment history; format: <environment-name>.<resource-name>
+
   [[environment:]] string                 # target environment name  
   [[strategy:]]
+
   [[Azure pipelines: strategy:|strategy:]]
     runOnce:   #rolling, canary are the other strategies that are supported
+
     runOnce:                               # [[rolling]], [[canary]] are the other strategies that are supported
 
       deploy:
 
       deploy:
         steps: [ script | bash | pwsh | powershell | checkout | task | templateReference ]
+
         [[steps:]] [ script | bash | pwsh | powershell | checkout | task | templateReference ]
  
 
== Related ==
 
== Related ==
* <code>[[strategy:]]</code>
+
* <code>[[resources:]]</code>
 
* <code>[[jobs:]]</code>
 
* <code>[[jobs:]]</code>
 +
* [[Azure pipelines: strategy:]]
  
 
== See also ==
 
== See also ==

Revision as of 17:16, 3 March 2022

https://docs.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs?view=azure-devops

jobs:
- deployment: string   # Name of the deployment
  displayName: string  # friendly name to display in the UI
  pool:                # not required for virtual machine resources
    name: string       # Use only global level variables. Stage/job level variables are not supported to define pool name.
    demands: string | [ string ]
  workspace:
    clean: outputs | resources | all       # What to clean up before the job runs
  dependsOn: string                        # Job name to create a dependency
  condition: string
  continueOnError: boolean                 # 'true' if future jobs should run even if this job fails; defaults to 'false'
  container: containerReference            # Container to run this job inside
  services: { string: string | container } # container resources to run as a service container
  timeoutInMinutes: nonEmptyString         # how long to run the job before automatically cancelling
  cancelTimeoutInMinutes: nonEmptyString   # how much time to give 'run always even if cancelled tasks' before killing them
  variables:                               # several syntaxes, see specific section
  environment: string                  # target environment name 
  strategy:
    runOnce:                               # rolling, canary are the other strategies that are supported
      deploy:
        steps: [ script | bash | pwsh | powershell | checkout | task | templateReference ]

Related

See also

Advertising: