From 30f1cd84dbad5d39663442cea21854c415978d01 Mon Sep 17 00:00:00 2001 From: hyokeun Date: Wed, 25 Oct 2017 14:56:27 +0900 Subject: [PATCH] Add description parameter in groovy node function Change-Id: Ic47bc7c82c2f7a357c1e0c314876195e3770e341 --- groovy_init_scripts/Module_Node | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groovy_init_scripts/Module_Node b/groovy_init_scripts/Module_Node index 2b3a55d..7f6b0de 100755 --- a/groovy_init_scripts/Module_Node +++ b/groovy_init_scripts/Module_Node @@ -1,9 +1,9 @@ // Configure Slaves -def create_slave_node = { instance, name, remoteFS, numExecutors, labelString, sshHost, sshPort, sshCredentials, userId -> +def create_slave_node = { instance, name, remoteFS, numExecutors, labelString, sshHost, sshPort, sshCredentials, userId, description -> def myLauncher = new hudson.plugins.sshslaves.SSHLauncher(sshHost, sshPort.toInteger(), sshCredentials, null, null, null, null, 0, 0, 0); def slave = new hudson.slaves.DumbSlave(name, - '', + description, remoteFS, numExecutors, hudson.model.Node.Mode.EXCLUSIVE, -- 2.7.4