From 9964104ed2325839913f4ff712c2ec2370b8a2d0 Mon Sep 17 00:00:00 2001 From: Shubham Verma Date: Thu, 5 Apr 2018 11:21:32 -0400 Subject: [PATCH] Improvement - Added node labels based, as discussed in https://github.com/AdoptOpenJDK/openjdk-jenkins-helper/issues/2 Signed-off-by: Shubham Verma --- vars/Constants.groovy | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vars/Constants.groovy b/vars/Constants.groovy index daeeb7e..621d10d 100644 --- a/vars/Constants.groovy +++ b/vars/Constants.groovy @@ -10,5 +10,16 @@ class Constants { static final String WGET_SLAVE_JAR = "\"wget -q --no-check-certificate -O slave.jar ${SLAVE_JAR_LOCATION} ; java -jar slave.jar\""; static final String SSH_COMMAND = "ssh -C -i ${SSH_KEY_LOCATION} @"; static final String SSH_KEY_LOCATION = ""; + static final String JENKINS_URL = "https://ci.adoptopenjdk.net/"; -} \ No newline at end of file + + static final String OS_LABEL_FORMAT = "%s.%s.%s"; + static final String GENERIC_LABEL_FORMAT = "%s.%s"; + static final String OS_LABEL_PREFIX = "sw.os"; + static final String ENDIAN_LABEL_PREFIX = "hw.endian"; + static final String PLATFORM_LABEL_PREFIX = "hw.platform"; + static final String ARCH_LABEL_PREFIX = "hw.arch"; + static final String KERNEL_LABEL_PREFIX = "hw.kernel"; + static final String HYPERVISOR_LABEL_PREFIX = "hw.hypervisor"; +} +