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+
122stages :
223 - stage : setup
3- variables :
4- ACN_DIR : $(Build.SourcesDirectory)
524 displayName : ACN
625 jobs :
726 - job : env
@@ -29,6 +48,7 @@ stages:
2948 echo $(Build.SourceBranch)
3049 name: "EnvironmentalVariables"
3150 displayName: "Set environmental variables"
51+ condition: always()
3252
3353 - template : templates/run-unit-tests.yaml
3454
@@ -38,8 +58,6 @@ stages:
3858 dependsOn :
3959 - setup
4060 - test
41- variables :
42- ACN_DIR : $(Build.SourcesDirectory)
4361 jobs :
4462 - job : build
4563 displayName : Build Binaries
@@ -48,27 +66,45 @@ stages:
4866 pool :
4967 name : " $(BUILD_POOL_NAME_DEFAULT)"
5068 steps :
51- - checkout : self
5269 - script : |
5370 make ipv6-hp-bpf-lib
5471 make all-binaries-platforms
5572 name: "BuildAllPlatformBinaries"
5673 displayName: "Build all platform binaries"
5774
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+
5897 - stage : containerize
5998 displayName : Build Images
6099 dependsOn :
61100 - setup
62101 - test
63- variables :
64- ACN_DIR : $(Build.SourcesDirectory)
65102 jobs :
66103 - job : containerize_amd64
67104 displayName : Build Images
68105 pool :
69106 name : " $(BUILD_POOL_NAME_LINUX_AMD64)"
70107 strategy :
71- maxParallel : 4
72108 matrix :
73109 azure_ipam_linux_amd64 :
74110 arch : amd64
@@ -136,7 +172,6 @@ stages:
136172 os : windows
137173 os_version : ltsc2022
138174 steps :
139- - checkout : self
140175 - template : containers/container-template.yaml
141176 parameters :
142177 arch : $(arch)
@@ -148,7 +183,6 @@ stages:
148183 pool :
149184 name : " $(BUILD_POOL_NAME_LINUX_ARM64)"
150185 strategy :
151- maxParallel : 4
152186 matrix :
153187 azure_ipam_linux_arm64 :
154188 arch : arm64
@@ -171,7 +205,6 @@ stages:
171205 name : npm
172206 os : linux
173207 steps :
174- - checkout : self
175208 - template : containers/container-template.yaml
176209 parameters :
177210 arch : $(arch)
@@ -184,14 +217,12 @@ stages:
184217 - containerize
185218 variables :
186219 Packaging.EnableSBOMSigning : false
187- ACN_DIR : $(Build.SourcesDirectory)
188220 jobs :
189221 - job : manifest
190222 displayName : Compile Manifests
191223 pool :
192224 name : " $(BUILD_POOL_NAME_DEFAULT)"
193225 strategy :
194- maxParallel : 4
195226 matrix :
196227 azure_ipam :
197228 name : azure-ipam
@@ -402,7 +433,6 @@ stages:
402433 pool :
403434 name : " $(BUILD_POOL_NAME_DEFAULT)"
404435 strategy :
405- maxParallel : 4
406436 matrix :
407437 cilium_e2e :
408438 name : cilium_e2e
@@ -466,7 +496,6 @@ stages:
466496 pool :
467497 name : " $(BUILD_POOL_NAME_DEFAULT)"
468498 strategy :
469- maxParallel : 4
470499 matrix :
471500 swiftv2_e2e :
472501 name : swiftv2_e2e
0 commit comments