mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
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:
1 parent
e3d8325ea1
commit
109e35100d
1 file changed
+1
-1
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user