16
16
displayName : " NPM k8s E2E"
17
17
dependsOn : ${{ parameters.dependsOn }}
18
18
condition : and( and( not(canceled()), not(failed()) ), ${{ or(contains(parameters.os_version, '2022'), eq(parameters.os, 'linux') ) }} , or( contains(variables.CONTROL_SCENARIO, 'npm') , contains(variables.CONTROL_SCENARIO, 'all') ) )
19
+ timeoutInMinutes : 180 # This is for testing windows, due to the 3m between the 14 tests -> results in 42m of wasted time
19
20
pool :
20
21
name : $(BUILD_POOL_NAME_DEFAULT)
21
22
demands :
@@ -120,15 +121,17 @@ jobs:
120
121
--ginkgo.focus="$focus" \
121
122
--ginkgo.skip="NetworkPolicyLegacy|SCTP" \
122
123
--kubeconfig=$HOME/.kube/config
123
-
124
- # Untaint Linux (system) nodes once testing is complete
125
- if ${{ lower(eq(parameters.os, 'windows')) }}
126
- then
127
- kubectl taint nodes -l kubernetes.azure.com/mode=system node-role.kubernetes.io/control-plane:NoSchedule-
128
- fi
129
124
displayName: "Run Kubernetes e2e.test"
130
125
continueOnError: ${{ parameters.continueOnError }}
131
126
127
+ - ${{ if eq(parameters.os, 'windows') }} :
128
+ - bash : |
129
+ # Untaint Linux (system) nodes once testing is complete
130
+ kubectl taint nodes -l kubernetes.azure.com/mode=system node-role.kubernetes.io/control-plane:NoSchedule-
131
+
132
+ displayName: Untaint Linux Nodes
133
+ condition: always()
134
+
132
135
- bash : |
133
136
npmLogs=$(System.DefaultWorkingDirectory)/${{ parameters.clusterName }}_npmLogs_Attempt_#$(System.StageAttempt)
134
137
mkdir -p $npmLogs
@@ -137,9 +140,10 @@ jobs:
137
140
npmPodList=`kubectl get pods -n kube-system | grep npm | awk '{print $1}'`
138
141
# capture all logs
139
142
for npmPod in $npmPodList; do
140
- kubectl logs -n kube-system $npmPod > $npmLogs/$npmPod-logs.txt
143
+ kubectl logs -n kube-system $npmPod > $npmLogs/$npmPod-logs.txt
141
144
done
142
145
displayName: Generate NPM pod logs
146
+ retryCountOnTaskFailure: 3
143
147
condition: always()
144
148
145
149
- publish : $(System.DefaultWorkingDirectory)/${{ parameters.clusterName }}_npmLogs_Attempt_#$(System.StageAttempt)
0 commit comments