Skip to content

Commit 5615e5c

Browse files
[CI] Set up CI&PR with Azure Pipelines (sonic-net#41)
[skip ci] Signed-off-by: Shilong Liu <[email protected]>
1 parent cfc86de commit 5615e5c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

azure-pipelines.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
trigger:
7+
branches:
8+
include:
9+
- master
10+
11+
pr:
12+
branches:
13+
include:
14+
- master
15+
16+
pool:
17+
vmImage: ubuntu-20.04
18+
19+
stages:
20+
- stage: Build
21+
jobs:
22+
- job:
23+
displayName: "build"
24+
timeoutInMinutes: 60
25+
steps:
26+
- checkout: self
27+
clean: true
28+
submodules: recursive
29+
displayName: 'Checkout code'
30+
- script: |
31+
echo Hello
32+
# the following is copied from jenkins
33+
# set -ex
34+
# ./scripts/common/sonic-mgmt-common-build/build.sh
35+
# ./scripts/common/sonic-mgmt-common-build/test.sh
36+
- publish: $(System.DefaultWorkingDirectory)/target/
37+
artifact: sonic-mgmt-common
38+
displayName: "Archive artifacts"

0 commit comments

Comments
 (0)