chore(pipeline): use nonspot agents on retry with Linux too (#26267)

* chore(pipeline): use nonspot agents with Linux too

* test: use nonspot label on first try

* Revert "test: use nonspot label on first try"

This reverts commit 58cb1f07ad.
This commit is contained in:
Hervé Le Meur authored and GitHub committed 2026-02-06 13:45:01 +00:00
1 parent e3d8325ea1
commit 109e35100d
1 file changed
+1 -1
Vendored
+1 -1
View File
@@ -71,7 +71,7 @@ axes.values().combinations {
}
int retryCount = 0
retry(conditions: [kubernetesAgent(handleNonKubernetes: true), nonresumable()], count: 2) {
if (retryCount == 1 && platform == 'windows' ) {
if (retryCount == 1) {
agentContainerLabel = agentContainerLabel + '-nonspot'
}
// Increment before allocating the node in case it fails