Skip to content

Commit c93109a

Browse files
authored
ci: Bypass Dualstack E2E on cluster creation failure (#2185)
* test: continue on fail * test: continueOnError * test: succeed cluster creation * revert commented job
1 parent d0559f8 commit c93109a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.pipelines/singletenancy/dualstack-overlay/dualstackoverlay-e2e-job-template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ stages:
3131
region: $(REGION_DUALSTACKOVERLAY_CLUSTER_TEST) # Dualstack has a specific region requirement
3232

3333
- stage: ${{ parameters.name }}
34+
condition: and( succeeded(), not(eq(dependencies.dualstackoverlaye2e.result,'SucceededWithIssues')) ) # Cant use parameters in dependencies
3435
displayName: E2E - ${{ parameters.displayName }}
3536
dependsOn:
3637
- setup

.pipelines/templates/create-cluster.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ jobs:
3434
make -C ./hack/aks ${{ parameters.clusterType }} AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_TEST) CLUSTER=${{ parameters.clusterName }} K8S_VER=${{ parameters.k8sVersion }} VM_SIZE=${{ parameters.vmSize }} WINDOWS_OS_SKU=${{ parameters.windowsOsSku }} WINDOWS_VM_SKU=${{ parameters.vmSize }} WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
3535
echo "Cluster successfully created"
3636
displayName: Cluster - ${{ parameters.clusterType }}
37+
continueOnError: ${{ contains(parameters.clusterType, 'dualstack') }}

0 commit comments

Comments
 (0)