Add description parameter in groovy node function
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 25 Oct 2017 05:56:27 +0000 (14:56 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 25 Oct 2017 05:56:27 +0000 (14:56 +0900)
Change-Id: Ic47bc7c82c2f7a357c1e0c314876195e3770e341

groovy_init_scripts/Module_Node

index 2b3a55d..7f6b0de 100755 (executable)
@@ -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,