Hallo
I have two files: Main.groovy, Base.groovy, Main calls the build method in Base:
When I start the script I got the following error:
Processing DSL script Main.groovy
ERROR: (Base.groovy, line 144) No signature of method: Base.job() is applicable for argument types: (java.lang.String, Base$_createBuildAndCopyToUserContentJob_closure5) values: [win32_TestZISSynchronisation_BuildAndCopyToUserContent, Base$_createBuildAndCopyToUserContentJob_closure5@10788531]
Possible solutions: any(), wait(), grep(), find(), dump(), is(java.lang.Object)
Finished: FAILURE
line 144 is
job(strJobName) {
How can I correct this?
Main.groovy:
base.createBuildAndCopyToUserContent(alltests, propertiesFile, "${js_sandbox32_home}", "${js_sandbox64_home}", JENKINS_HOME)
Base.groovy:
def createBuildAndCopyToUserContent(alltests, propertiesFilePath, js_sandbox32_home, js_sandbox64_home, JENKINS_HOME) {
alltests.each { test ->
if (test.runTest) {
createBuildAndCopyToUserContentJob(test, test.platform, propertiesFilePath, js_sandbox32_home, js_sandbox64_home, JENKINS_HOME)
}
}
}
def createBuildAndCopyToUserContentJob(test, platform, propertiesFilePath, js_sandbox32_home, js_sandbox64_home, JENKINS_HOME) {
String strJobName = test.name
job(strJobName) {