forked from shashban/AzurePipelineSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequentialstages.yml
36 lines (34 loc) · 927 Bytes
/
sequentialstages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
trigger:
- master
stages:
- stage: Build
displayName: Build stage
jobs:
- job: Build
displayName: Build job
steps:
- script: |
echo Hello, world !!
echo Replace me with your build steps
displayName: 'Build'
- powershell: Write-Host "Run unit tests for your application."
displayName: 'Unit Testing'
- task: PublishPipelineArtifact@0
displayName: Publish Artifacts
inputs:
artifactName: drop
targetPath: '$(Build.SourcesDirectory)'
- stage: Deploy
displayName: Deploy stage
jobs:
- deployment: deploy
displayName: Deploy job
environment: 'myFirstEnvironment'
strategy:
runOnce:
deploy:
steps:
- script: dir $(Pipeline.Workspace)
displayName: List Artifact Contents
- powershell: Write-Host "run your deployment steps"
displayName: Run Deployment