1- pr :
2- branches :
3- include :
4- - master
5- - release/*
6- paths :
7- exclude :
8- - " .devcontainer"
9- - " .hooks"
10- - " .vscode"
11- - " .github"
12- - docs
13-
14- trigger :
15- branches :
16- include :
17- - gh-readonly-queue/master/*
18- tags :
19- include :
20- - " *"
21-
221stages :
232 - stage : setup
3+ variables :
4+ ACN_DIR : $(Build.SourcesDirectory)
245 displayName : ACN
256 jobs :
267 - job : env
@@ -48,7 +29,6 @@ stages:
4829 echo $(Build.SourceBranch)
4930 name: "EnvironmentalVariables"
5031 displayName: "Set environmental variables"
51- condition: always()
5232
5333 - template : templates/run-unit-tests.yaml
5434
@@ -58,6 +38,8 @@ stages:
5838 dependsOn :
5939 - setup
6040 - test
41+ variables :
42+ ACN_DIR : $(Build.SourcesDirectory)
6143 jobs :
6244 - job : build
6345 displayName : Build Binaries
@@ -66,45 +48,27 @@ stages:
6648 pool :
6749 name : " $(BUILD_POOL_NAME_DEFAULT)"
6850 steps :
51+ - checkout : self
6952 - script : |
7053 make ipv6-hp-bpf-lib
7154 make all-binaries-platforms
7255 name: "BuildAllPlatformBinaries"
7356 displayName: "Build all platform binaries"
7457
75- - script : |
76- mkdir -p ./output/bins
77- cd ./output
78- find . -name '*.tgz' -print -exec mv -t ./bins/ {} +
79- find . -name '*.zip' -print -exec mv -t ./bins/ {} +
80- shopt -s extglob
81- rm -rf !("bins")
82- name: "PrepareArtifacts"
83- displayName: "Prepare Artifacts"
84-
85- - task : CopyFiles@2
86- inputs :
87- sourceFolder : " output"
88- targetFolder : $(Build.ArtifactStagingDirectory)
89- condition : succeeded()
90-
91- - task : PublishBuildArtifacts@1
92- inputs :
93- artifactName : " output"
94- pathtoPublish : " $(Build.ArtifactStagingDirectory)"
95- condition : succeeded()
96-
9758 - stage : containerize
9859 displayName : Build Images
9960 dependsOn :
10061 - setup
10162 - test
63+ variables :
64+ ACN_DIR : $(Build.SourcesDirectory)
10265 jobs :
10366 - job : containerize_amd64
10467 displayName : Build Images
10568 pool :
10669 name : " $(BUILD_POOL_NAME_LINUX_AMD64)"
10770 strategy :
71+ maxParallel : 4
10872 matrix :
10973 azure_ipam_linux_amd64 :
11074 arch : amd64
@@ -172,6 +136,7 @@ stages:
172136 os : windows
173137 os_version : ltsc2022
174138 steps :
139+ - checkout : self
175140 - template : containers/container-template.yaml
176141 parameters :
177142 arch : $(arch)
@@ -183,6 +148,7 @@ stages:
183148 pool :
184149 name : " $(BUILD_POOL_NAME_LINUX_ARM64)"
185150 strategy :
151+ maxParallel : 4
186152 matrix :
187153 azure_ipam_linux_arm64 :
188154 arch : arm64
@@ -205,6 +171,7 @@ stages:
205171 name : npm
206172 os : linux
207173 steps :
174+ - checkout : self
208175 - template : containers/container-template.yaml
209176 parameters :
210177 arch : $(arch)
@@ -217,12 +184,14 @@ stages:
217184 - containerize
218185 variables :
219186 Packaging.EnableSBOMSigning : false
187+ ACN_DIR : $(Build.SourcesDirectory)
220188 jobs :
221189 - job : manifest
222190 displayName : Compile Manifests
223191 pool :
224192 name : " $(BUILD_POOL_NAME_DEFAULT)"
225193 strategy :
194+ maxParallel : 4
226195 matrix :
227196 azure_ipam :
228197 name : azure-ipam
@@ -433,6 +402,7 @@ stages:
433402 pool :
434403 name : " $(BUILD_POOL_NAME_DEFAULT)"
435404 strategy :
405+ maxParallel : 4
436406 matrix :
437407 cilium_e2e :
438408 name : cilium_e2e
@@ -496,6 +466,7 @@ stages:
496466 pool :
497467 name : " $(BUILD_POOL_NAME_DEFAULT)"
498468 strategy :
469+ maxParallel : 4
499470 matrix :
500471 swiftv2_e2e :
501472 name : swiftv2_e2e
0 commit comments