Skip to content

Commit 9904015

Browse files
committed
test: strateget matrix condition
1 parent 549dfd5 commit 9904015

File tree

1 file changed

+121
-129
lines changed

1 file changed

+121
-129
lines changed

.pipelines/run-pipeline.yaml

Lines changed: 121 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ stages:
233233
images:
234234
- job: linux_amd64
235235
displayName: "Linux/AMD64"
236-
condition: contains( variables['acn-ref'] , 'v1.7')
237236
templateContext:
238237
repositoryArtifact: drop_setup_env_source
239238
buildScript: .pipelines/build/scripts/$(name).sh
@@ -247,24 +246,17 @@ stages:
247246
archiveName: azure-ip-masq-merger
248247
archiveVersion: $(AZURE_IP_MASQ_MERGER_VERSION)
249248
imageTag: $(Build.BuildNumber)
250-
- job: linux_amd64
251-
displayName: "Linux/AMD64"
252-
condition: contains( variables['acn-ref'] , 'v1.6')
253-
templateContext:
254-
repositoryArtifact: drop_setup_env_source
255-
buildScript: .pipelines/build/scripts/$(name).sh
256-
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
257-
strategy:
258-
maxParallel: 5
259-
matrix:
249+
condition: contains( variables['acn-ref'] , 'v1.7')
260250
npm:
261251
name: npm
262252
extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
263253
archiveName: azure-npm
264254
archiveVersion: $(NPM_VERSION)
265255
imageTag: $(Build.BuildNumber)
256+
condition: contains( variables['acn-ref'] , 'v1.6')
257+
266258
# Everything else not constrained by v1.6 or v1.7
267-
- job: linux_amd64
259+
# - job: linux_amd64
268260
displayName: "Linux/AMD64"
269261
condition: succeeded()
270262
templateContext:
@@ -302,123 +294,123 @@ stages:
302294
imageTag: $(Build.BuildNumber)
303295

304296

305-
- job: windows_amd64
306-
displayName: "Windows"
307-
condition: succeeded()
308-
templateContext:
309-
repositoryArtifact: drop_setup_env_source
310-
buildScript: .pipelines/build/scripts/$(name).sh
311-
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
312-
strategy:
313-
maxParallel: 5
314-
matrix:
315-
azure_ipam:
316-
name: azure-ipam
317-
extraArgs: ''
318-
archiveName: azure-ipam
319-
archiveVersion: $(AZURE_IPAM_VERSION)
320-
imageTag: $(Build.BuildNumber)
321-
packageWithDropGZ: True
322-
cni:
323-
name: cni
324-
extraArgs: '--build-arg CNI_AI_PATH=$(CNI_AI_PATH) --build-arg CNI_AI_ID=$(CNI_AI_ID)'
325-
archiveName: azure-cni
326-
archiveVersion: $(CNI_VERSION)
327-
imageTag: $(Build.BuildNumber)
328-
packageWithDropGZ: True
329-
cns:
330-
name: cns
331-
extraArgs: '--build-arg CNS_AI_PATH=$(CNS_AI_PATH) --build-arg CNS_AI_ID=$(CNS_AI_ID)'
332-
archiveName: azure-cns
333-
archiveVersion: $(CNS_VERSION)
334-
imageTag: $(Build.BuildNumber)
335-
- job: windows_amd64
336-
displayName: "Windows"
337-
condition: contains( variables['acn-ref'] , 'v1.6')
338-
templateContext:
339-
repositoryArtifact: drop_setup_env_source
340-
buildScript: .pipelines/build/scripts/$(name).sh
341-
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
342-
strategy:
343-
maxParallel: 5
344-
matrix:
345-
npm:
346-
name: npm
347-
extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
348-
archiveName: azure-npm
349-
archiveVersion: $(NPM_VERSION)
350-
imageTag: $(Build.BuildNumber)
351-
- job: linux_arm64
352-
displayName: "Linux/ARM64"
353-
condition: contains( variables['acn-ref'] , 'v1.7')
354-
templateContext:
355-
repositoryArtifact: drop_setup_env_source
356-
buildScript: .pipelines/build/scripts/$(name).sh
357-
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
358-
strategy:
359-
maxParallel: 3
360-
matrix:
361-
azure_ip_masq_merger:
362-
name: azure-ip-masq-merger
363-
extraArgs: ''
364-
archiveName: azure-ip-masq-merger
365-
archiveVersion: $(AZURE_IP_MASQ_MERGER_VERSION)
366-
imageTag: $(Build.BuildNumber)
367-
368-
- job: linux_arm64
369-
displayName: "Linux/ARM64"
370-
condition: contains( variables['acn-ref'] , 'v1.6')
371-
templateContext:
372-
repositoryArtifact: drop_setup_env_source
373-
buildScript: .pipelines/build/scripts/$(name).sh
374-
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
375-
strategy:
376-
maxParallel: 3
377-
matrix:
378-
npm:
379-
name: npm
380-
extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
381-
archiveName: azure-npm
382-
archiveVersion: $(NPM_VERSION)
383-
imageTag: $(Build.BuildNumber)
384-
385-
# Everything else not constrained by v1.6 or v1.7
386-
- job: linux_arm64
387-
displayName: "Linux/ARM64"
388-
condition: succeeded()
389-
templateContext:
390-
repositoryArtifact: drop_setup_env_source
391-
buildScript: .pipelines/build/scripts/$(name).sh
392-
obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
393-
strategy:
394-
maxParallel: 3
395-
matrix:
396-
azure_ipam:
397-
name: azure-ipam
398-
archiveName: azure-ipam
399-
archiveVersion: $(AZURE_IPAM_VERSION)
400-
extraArgs: ''
401-
imageTag: $(Build.BuildNumber)
402-
packageWithDropGZ: True
403-
cni:
404-
name: cni
405-
extraArgs: '--build-arg CNI_AI_PATH=$(CNI_AI_PATH) --build-arg CNI_AI_ID=$(CNI_AI_ID)'
406-
archiveName: azure-cni
407-
archiveVersion: $(CNI_VERSION)
408-
imageTag: $(Build.BuildNumber)
409-
packageWithDropGZ: True
410-
cns:
411-
name: cns
412-
extraArgs: '--build-arg CNS_AI_PATH=$(CNS_AI_PATH) --build-arg CNS_AI_ID=$(CNS_AI_ID)'
413-
archiveName: azure-cns
414-
archiveVersion: $(CNS_VERSION)
415-
imageTag: $(Build.BuildNumber)
416-
ipv6_hp_bpf:
417-
name: ipv6-hp-bpf
418-
extraArgs: "--build-arg DEBUG=$(System.Debug)"
419-
archiveName: ipv6-hp-bpf
420-
archiveVersion: $(IPV6_HP_BPF_VERSION)
421-
imageTag: $(Build.BuildNumber)
297+
# - job: windows_amd64
298+
# displayName: "Windows"
299+
# condition: succeeded()
300+
# templateContext:
301+
# repositoryArtifact: drop_setup_env_source
302+
# buildScript: .pipelines/build/scripts/$(name).sh
303+
# obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
304+
# strategy:
305+
# maxParallel: 5
306+
# matrix:
307+
# azure_ipam:
308+
# name: azure-ipam
309+
# extraArgs: ''
310+
# archiveName: azure-ipam
311+
# archiveVersion: $(AZURE_IPAM_VERSION)
312+
# imageTag: $(Build.BuildNumber)
313+
# packageWithDropGZ: True
314+
# cni:
315+
# name: cni
316+
# extraArgs: '--build-arg CNI_AI_PATH=$(CNI_AI_PATH) --build-arg CNI_AI_ID=$(CNI_AI_ID)'
317+
# archiveName: azure-cni
318+
# archiveVersion: $(CNI_VERSION)
319+
# imageTag: $(Build.BuildNumber)
320+
# packageWithDropGZ: True
321+
# cns:
322+
# name: cns
323+
# extraArgs: '--build-arg CNS_AI_PATH=$(CNS_AI_PATH) --build-arg CNS_AI_ID=$(CNS_AI_ID)'
324+
# archiveName: azure-cns
325+
# archiveVersion: $(CNS_VERSION)
326+
# imageTag: $(Build.BuildNumber)
327+
# - job: windows_amd64
328+
# displayName: "Windows"
329+
# condition: contains( variables['acn-ref'] , 'v1.6')
330+
# templateContext:
331+
# repositoryArtifact: drop_setup_env_source
332+
# buildScript: .pipelines/build/scripts/$(name).sh
333+
# obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
334+
# strategy:
335+
# maxParallel: 5
336+
# matrix:
337+
# npm:
338+
# name: npm
339+
# extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
340+
# archiveName: azure-npm
341+
# archiveVersion: $(NPM_VERSION)
342+
# imageTag: $(Build.BuildNumber)
343+
# - job: linux_arm64
344+
# displayName: "Linux/ARM64"
345+
# condition: contains( variables['acn-ref'] , 'v1.7')
346+
# templateContext:
347+
# repositoryArtifact: drop_setup_env_source
348+
# buildScript: .pipelines/build/scripts/$(name).sh
349+
# obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
350+
# strategy:
351+
# maxParallel: 3
352+
# matrix:
353+
# azure_ip_masq_merger:
354+
# name: azure-ip-masq-merger
355+
# extraArgs: ''
356+
# archiveName: azure-ip-masq-merger
357+
# archiveVersion: $(AZURE_IP_MASQ_MERGER_VERSION)
358+
# imageTag: $(Build.BuildNumber)
359+
360+
# - job: linux_arm64
361+
# displayName: "Linux/ARM64"
362+
# condition: contains( variables['acn-ref'] , 'v1.6')
363+
# templateContext:
364+
# repositoryArtifact: drop_setup_env_source
365+
# buildScript: .pipelines/build/scripts/$(name).sh
366+
# obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
367+
# strategy:
368+
# maxParallel: 3
369+
# matrix:
370+
# npm:
371+
# name: npm
372+
# extraArgs: '--build-arg NPM_AI_PATH=$(NPM_AI_PATH) --build-arg NPM_AI_ID=$(NPM_AI_ID)'
373+
# archiveName: azure-npm
374+
# archiveVersion: $(NPM_VERSION)
375+
# imageTag: $(Build.BuildNumber)
376+
377+
# # Everything else not constrained by v1.6 or v1.7
378+
# - job: linux_arm64
379+
# displayName: "Linux/ARM64"
380+
# condition: succeeded()
381+
# templateContext:
382+
# repositoryArtifact: drop_setup_env_source
383+
# buildScript: .pipelines/build/scripts/$(name).sh
384+
# obDockerfile: .pipelines/build/dockerfiles/$(name).Dockerfile
385+
# strategy:
386+
# maxParallel: 3
387+
# matrix:
388+
# azure_ipam:
389+
# name: azure-ipam
390+
# archiveName: azure-ipam
391+
# archiveVersion: $(AZURE_IPAM_VERSION)
392+
# extraArgs: ''
393+
# imageTag: $(Build.BuildNumber)
394+
# packageWithDropGZ: True
395+
# cni:
396+
# name: cni
397+
# extraArgs: '--build-arg CNI_AI_PATH=$(CNI_AI_PATH) --build-arg CNI_AI_ID=$(CNI_AI_ID)'
398+
# archiveName: azure-cni
399+
# archiveVersion: $(CNI_VERSION)
400+
# imageTag: $(Build.BuildNumber)
401+
# packageWithDropGZ: True
402+
# cns:
403+
# name: cns
404+
# extraArgs: '--build-arg CNS_AI_PATH=$(CNS_AI_PATH) --build-arg CNS_AI_ID=$(CNS_AI_ID)'
405+
# archiveName: azure-cns
406+
# archiveVersion: $(CNS_VERSION)
407+
# imageTag: $(Build.BuildNumber)
408+
# ipv6_hp_bpf:
409+
# name: ipv6-hp-bpf
410+
# extraArgs: "--build-arg DEBUG=$(System.Debug)"
411+
# archiveName: ipv6-hp-bpf
412+
# archiveVersion: $(IPV6_HP_BPF_VERSION)
413+
# imageTag: $(Build.BuildNumber)
422414

423415

424416

0 commit comments

Comments
 (0)