Skip to content

Example of how to configure an Azure DevOps chaining Pipelines (Build & Release) with yml files.

License

Notifications You must be signed in to change notification settings

reisbel/azure-devops-pipeline-chaining-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

azure-devops-pipeline-chaining-yaml

Example of how to configure an Azure DevOps chaining Pipelines (Build & Release) with yml files.

Code

Build pipeline code - builds are triggered by commiting code to the master branch

trigger:
    - master

pool:
    vmImage: 'ubuntu-latest'

steps:
    - script: echo Hello, world!
      displayName: 'Run a one-line script'
    - task: CopyFiles@2
      inputs:
        SourceFolder: 'src'
        Contents: 'index.html'
        TargetFolder: '$(Build.ArtifactStagingDirectory)/'
    - task: PublishBuildArtifacts@1
      inputs:
        PathtoPublish: '$(Build.ArtifactStagingDirectory)'
        ArtifactName: 'drop'
        publishLocation: 'Container'

Release pipeline code - releases are trigged by the execution of the build pipeline

pool:
    vmImage: 'ubuntu-latest'

resources:
  pipelines:
  - pipeline: 'chaining-yaml - build pipeline'
    source: 'chaining-yaml - build pipeline'
    trigger:
      enabled: true
steps:
    - download: 'chaining-yaml - build pipeline'
      artifact: 'drop'

Demo

License

MIT - See LICENSE for more information.

About

Example of how to configure an Azure DevOps chaining Pipelines (Build & Release) with yml files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages