Hello,
I am running my performance testing in one of the slave node (linux machine). In build step I am using "Execute groovy script" which obviously running on Slave machine.
This line throws me an error: def buildRun = Thread.currentThread().executable
Error: Caught: groovy.lang.MissingPropertyException: No such property: executable for class: java.lang.Thread
groovy.lang.MissingPropertyException: No such property: executable for class: java.lang.Thread
at hudson7323000363615321518.run(hudson7323000363615321518.groovy:90)
Build step 'Execute Groovy script' marked build as failure
I know I found online everyone is suggesting to use "Execute System Groovy script" but I can't use in this case as I don't want to run anything on master. Also this program uses buildRun object to get another file which on slave machine so if I use "Execute System Groovy Script" though it is giving me issue for finding this file as it is on slave machine. Can anyone suggest what should I do? Where I am doing wrong?
Thanks,