0
我運行下面的腳本如何使用Groovy腳本腳本CONSOL
import hudson.plugins.emailext.*
import hudson.model.*
import hudson.maven.*
import hudson.maven.reporters.*
import hudson.tasks.*
def jobNames = "${jobs}";
jobNames = jobNames.split(",");
println("Jobs: " + jobNames);
println();
它與例外,這是遵循未能得到詹金斯工作清單:
groovy.lang.MissingPropertyException: No such property: jobs for class: Script1
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
$ {}的工作永遠不會定義... – arifCee