Skip to content

Commit d106cdc

Browse files
author
Sheyla Trudo
committed
fixup! Separate Build Changes
1 parent f8c0509 commit d106cdc

File tree

4 files changed

+13
-56
lines changed

4 files changed

+13
-56
lines changed

.pipelines/containers/container-template.jobs.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ jobs:
2929

3030
- bash: |
3131
set -e
32-
33-
ip address
34-
/usr/bin/dockerd -D &
35-
systemctl status docker.socket
36-
#systemctl restart docker
3732
3833
BUILD_CONTEXT=$(make "$MAKE_BUILD_CONTEXT")
3934
echo >&2 "##vso[task.setvariable variable=BUILD_CONTEXT_${VAR_ID};]$BUILD_CONTEXT"
@@ -60,6 +55,7 @@ jobs:
6055
6156
- template: container-template.steps.yaml
6257
parameters:
63-
arch: ${{ parameters.arch }}
6458
name: ${{ image }}
6559
os: ${{ parameters.os }}
60+
arch: ${{ parameters.arch }}
61+
platform: ${{ parameters.os }}/${{ parameters.arch }}

.pipelines/containers/container-template.steps.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ parameters:
2222
- windows
2323
- linux
2424

25+
- name: platform
26+
type: string
27+
default: ""
28+
2529

2630
steps:
2731
- task: 1ES.BuildContainerImage@1
@@ -30,7 +34,7 @@ steps:
3034
image: $(IMAGE_NAME_AND_TAG_${{ parameters.name }})
3135
dockerfile: $(DOCKERFILE_PATH_${{ parameters.name }})
3236
path: $(Build.SourcesDirectory)
33-
buildArguments: --platform "${{ parameters.os }}/${{ parameters.arch }}" --build-arg ARCH="${{ parameters.arch }}" --build-arg OS="${{ parameters.os }}" --build-arg PLATFORM="${{ parameters.os }}/${{ parameters.arch }}" --build-arg VERSION="$(IMAGE_PLATFORM_TAG_${{ parameters.name }})" --target "${{ parameters.os }}" $(EXTRA_BUILD_ARGS_${{ parameters.name }})
37+
buildArguments: --platform "${{ parameters.platform }}" --build-arg ARCH="${{ parameters.arch }}" --build-arg OS="${{ parameters.os }}" --build-arg PLATFORM="${{ parameters.platform }}" --build-arg VERSION="$(IMAGE_PLATFORM_TAG_${{ parameters.name }})" --target "${{ parameters.os }}" $(EXTRA_BUILD_ARGS_${{ parameters.name }})
3438
enableNetwork: true
3539
enablePull: false
3640
enableCache: true

.pipelines/run-pipeline.yaml

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ stages:
8484
- cns
8585
- ipv6-hp-bpf
8686
- npm
87-
containerRegistry:
87+
containerRegistry:
8888
name: $(ACR_NAME)
8989
clientId: $(ACR_CLIENTID)
9090
- template: containers/container-template.jobs.yaml
@@ -97,7 +97,7 @@ stages:
9797
- cns
9898
- ipv6-hp-bpf
9999
- npm
100-
containerRegistry:
100+
containerRegistry:
101101
name: $(ACR_NAME)
102102
clientId: $(ACR_CLIENTID)
103103
- template: containers/container-template.jobs.yaml
@@ -109,7 +109,7 @@ stages:
109109
- cni
110110
- cns
111111
- npm
112-
containerRegistry:
112+
containerRegistry:
113113
name: $(ACR_NAME)
114114
clientId: $(ACR_CLIENTID)
115115

@@ -292,21 +292,6 @@ stages:
292292
vmSize: Standard_B2ms
293293
dependsOn: "containerize"
294294

295-
# Swiftv2 E2E tests with multitenancy cluster start up
296-
- template: multitenancy/swiftv2-e2e.jobs.yaml
297-
parameters:
298-
name: "swiftv2_e2e"
299-
displayName: Swiftv2 Multitenancy
300-
os: linux
301-
clusterType: swiftv2-multitenancy-cluster-up
302-
clusterName: "mtacluster"
303-
nodePoolName: "mtapool"
304-
vmSize: $(SWIFTV2_MT_CLUSTER_SKU)
305-
dependsOn: "containerize"
306-
dummyClusterName: "swiftv2dummy"
307-
dummyClusterType: "swiftv2-dummy-cluster-up"
308-
dummyClusterDisplayName: Swiftv2 Multitenancy Dummy Cluster
309-
310295
- stage: delete
311296
displayName: Delete Clusters
312297
condition: always()
@@ -324,7 +309,6 @@ stages:
324309
- aks_windows_22_e2e
325310
- dualstackoverlay_e2e
326311
- cilium_dualstackoverlay_e2e
327-
- swiftv2_e2e
328312
variables:
329313
commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ]
330314
jobs:
@@ -336,7 +320,7 @@ stages:
336320
cilium_e2e:
337321
name: cilium_e2e
338322
clusterName: "ciliume2e"
339-
region: $(REGION_AKS_CLUSTER_TEST)
323+
region: $(REGION_AKS_CLUSTER_TEST)
340324
cilium_nodesubnet_e2e:
341325
name: cilium_nodesubnet_e2e
342326
clusterName: "cilndsubnete2e"
@@ -389,25 +373,3 @@ stages:
389373
region: $(region)
390374
sub: $(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS)
391375
svcConn: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
392-
393-
- job: delete_test
394-
displayName: Delete Cluster
395-
strategy:
396-
maxParallel: 4
397-
matrix:
398-
swiftv2_e2e:
399-
name: swiftv2_e2e
400-
clusterName: "mtacluster"
401-
region: $(REGION_SWIFTV2_CLUSTER_TEST)
402-
swiftv2_dummy_e2e:
403-
name: swiftv2_dummy_e2e
404-
clusterName: "swiftv2dummy"
405-
region: $(REGION_SWIFTV2_CLUSTER_TEST)
406-
steps:
407-
- template: templates/delete-cluster.steps.yaml
408-
parameters:
409-
name: $(name)
410-
clusterName: $(clusterName)-$(commitID)
411-
region: $(region)
412-
sub: $(SUB_AZURE_NETWORK_AGENT_TEST)
413-
svcConn: $(ACN_TEST_SERVICE_CONNECTION)

.pipelines/trigger.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ resources:
3030

3131

3232
variables:
33-
REPO_REF: $[ resources.repositories['azure-container-networking'].ref ]
34-
REPO_COMMIT: $[ resources.repositories['azure-container-networking'].version ]
35-
REPO_NAME: $[ resources.repositories['azure-container-networking'].name ]
36-
REPO_TYPE: $[ resources.repositories['azure-container-networking'].type ]
37-
CHANGESET_COMMIT: $[ resources.repositories['self'].version ]
3833
# Local analysis is only enabled on PR branches
3934
Codeql.AnalyzeInPipeline: $[startsWith(variables['Build.SourceBranch'], 'refs/pull/')]
4035

@@ -48,11 +43,11 @@ extends:
4843
featureFlags:
4944
automaticContainerPatching: true
5045
sdl:
51-
sourceAnalysisPool:
46+
sourceAnalysisPool:
5247
name: $(BUILD_POOL_NAME_DEFAULT_WINDOWS)
5348
os: windows
5449
image: acn-runner-vmss-image-windows-1es-v2.0
55-
globalSdl: # https://aka.ms/obpipelines/sdl
50+
globalSdl:
5651
#baseline:
5752
#baselineFile: $(Build.SourcesDirectory)\.config\.gdnbaselines
5853
#suppressionSet: default

0 commit comments

Comments
 (0)