Skip to content

Commit df9f42d

Browse files
author
h2o-ops
committed
Merge remote-tracking branch 'origin/rel-3.46.0'
2 parents 36076d5 + a3ae44d commit df9f42d

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

scripts/jenkins/groovy/buildConfig.groovy

+4-14
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class BuildConfig {
9999
changesMap[COMPONENT_HADOOP] = buildHadoop
100100
changedPythonTests = detectPythonTestChanges(changes)
101101

102-
nodeLabels = NodeLabels.findByBuildURL(context.env.BUILD_URL)
102+
nodeLabels = NodeLabels.LABELS_C1
103103
supportedXGBEnvironments = [
104104
'centos7.3': [
105105
[name: 'CentOS 7.3 Minimal', dockerfile: 'xgb/centos/Dockerfile-centos-minimal', fromImage: 'centos:7.3.1611', targetName: XGB_TARGET_MINIMAL, nodeLabel: getDefaultNodeLabel()],
@@ -369,13 +369,13 @@ class BuildConfig {
369369
}
370370

371371
static enum NodeLabels {
372-
LABELS_C1('docker && !mr-0xc8', 'mr-0xc9', 'gpu && !2gpu', 'mr-0xk10'), //master or nightly build
373-
LABELS_B4('docker', 'docker', 'gpu && !2gpu', 'docker') //PR build
372+
LABELS_C1('docker && !mr-0xc8', 'mr-0xc9', 'gpu && !2gpu', 'mr-0xk10'), //master or nightly build - use only this one
373+
LABELS_B4('docker', 'docker', 'gpu && !2gpu', 'docker') //PR build - not used
374374

375375
static Map<String, NodeLabels> LABELS_MAP = [
376376
"c1": LABELS_C1,
377377
"g1": LABELS_C1, //mr-0xg1 was set as alias to mr-0xc1
378-
"b4": LABELS_B4
378+
"b4": LABELS_B4 // not used
379379
]
380380

381381
private final String defaultNodeLabel
@@ -405,16 +405,6 @@ class BuildConfig {
405405
String getGPUBenchmarkNodeLabel() {
406406
return gpuBenchmarkNodeLabel
407407
}
408-
409-
private static NodeLabels findByBuildURL(final String buildURL) {
410-
final String name = buildURL.replaceAll('http://mr-0x', '').replaceAll(':8080.*', '')
411-
412-
if (LABELS_MAP.containsKey(name)) {
413-
return LABELS_MAP.get(name)
414-
} else {
415-
throw new IllegalArgumentException(String.format("Master %s (%s) is unknown", name, buildURL))
416-
}
417-
}
418408
}
419409
}
420410

scripts/jenkins/jenkinsfiles/Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
final String MODE_PR = 'MODE_PR'
44
final String MODE_MASTER = 'MODE_MASTER'
5-
final String DEFAULT_NODE_LABEL = 'h2o-3 && docker && !mr-0xc8 && (!micro || micro_21)'
5+
final String DEFAULT_NODE_LABEL = 'h2o-3'
66
final int HEALTH_CHECK_RETRIES = 5
77

88
def defineTestStages = null

0 commit comments

Comments
 (0)