File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ def call(Map params = [:]) {
49
49
} else {
50
50
switch (platform) {
51
51
case ' windows' :
52
- label = ' docker-windows && spot '
52
+ label = ' docker-windows'
53
53
break
54
54
case ' linux' :
55
- label = ' vm && linux && spot '
55
+ label = ' vm && linux'
56
56
break
57
57
default :
58
58
echo " WARNING: Unknown Virtual Machine platform '${ platform} '. Set useContainerAgent to 'true' unless you want to be in uncharted territory."
@@ -65,11 +65,9 @@ def call(Map params = [:]) {
65
65
retry(count : 3 , conditions : [kubernetesAgent(handleNonKubernetes : true ), nonresumable()]) {
66
66
if (retryCounter > 1 ) {
67
67
// Use a spot instance for the 2 first try [try 0 and 1] and nonspot for third and last [2]
68
- if (platform == ' windows' ) {
69
- label = ' docker-windows && nonspot'
70
- } else {
71
- label = ' vm && linux && nonspot'
72
- }
68
+ label + = ' && nonspot'
69
+ } else {
70
+ label + = ' && spot'
73
71
}
74
72
retryCounter++
75
73
node(label) {
You can’t perform that action at this time.
0 commit comments