Azure DevOps
-
YAML reference Refer Here
-
Pipeline structure
-
Azure pipelines are yaml files and are generally nameds as
azure-pipeline.yaml
-
A step can be any of this
task | script | powershell | pwsh | bash | checkout | download | downloadBuild | getPackage | publish | template | reviewApp
-
Azure DevOps Task list Refer Here
-
Azure DevOps Extensions are available Refer Here
Basic pipeline
---
name: build
pool: Default
trigger:
- main
pr:
- main
stages:
- stage: build
displayName: Build the Maven Project - Stage
jobs:
- job: build
displayName: Build the Maven Project - Job
steps:
- bash: mvn package
displayName: Maven build step
---
name: build
trigger:
- main
pr:
- main
stages:
- stage: build
displayName: Build the Maven Project - Stage
jobs:
- job: selfhostedbuild
pool: Default
displayName: Build the Maven Project - Self Hosted
steps:
- bash: mvn package
displayName: Maven build step
- job: adohostedbuild
pool:
vmImage: ubuntu-latest
displayName: Build the Maven Project - Microsoft Hosted
steps:
- bash: mvn package
displayName: Maven build step
Like this:
Like Loading...