On-premises deployment (main pipeline)

Home   »   On-premises deployment (main pipeline)

trigger:
- master

stages:
- stage: Build
  jobs:
  - job: Build
    pool:
      vmImage: 'windows-latest'

    variables:
      solution: '**/*.sln'
      buildPlatform: 'Any CPU'
      buildConfiguration: 'Release'

    steps:
    - task: [email protected]

    - task: [email protected]
      inputs:
        restoreSolution: '$(solution)'

    - task: [email protected]
      inputs:
        solution: '$(solution)'
        platform: '$(buildPlatform)'
        configuration: '$(buildConfiguration)'
        msbuildArgs: /p:OutDir="$(build.artifactstagingdirectory)" 

    - task: [email protected]
      inputs:
        PathtoPublish: '$(Build.ArtifactStagingDirectory)'
        ArtifactName: 'drop'
        publishLocation: 'Container'


- stage: Deployment
  dependsOn: Build

  jobs:
  - deployment: DeployTEST
    displayName: 'Deploy to TEST'
    environment: 
      name: TEST                   ## name of the Environment
      resourceType: VirtualMachine ## required to tell AZDO to deploy to VMs. 

    strategy:
      runOnce:    #rolling, canary are the other strategies that are supported
        deploy:
          steps:
          - template: deploy.yml

Leave a Reply

Your email address will not be published. Required fields are marked *