groovy script failed in Krel_reconfigura-jobs
Hi,
I was trying to setup a buildfarm for my group. I have ran import_upstream successfully. Then next I triggered "Krel_reconfigure-jobs". It took a lot of time to finish configuring tons of jobs. After this, the job failed when it ran the generated groovy files, complaining unable to resolve imports. The tail of the log is pasted as below.
I was also thinking about write a tutorial about some of the problems I met configuring the buildfarm ( https://gist.github.com/prclibo/90fc9... ). Maybe after I succeed setup the buildfarm I can fiinsh this.
...... 18:06:17 Configuration for jobs: Ksrc_uX__zeroconf_avahi_suite__ubuntu_xenial__source, Kbin_uX64__zeroconf_avahi_suite__ubuntu_xenial_amd64__binary 18:06:17 Configuration for jobs: Ksrc_dJ__zeroconf_avahi_suite__debian_jessie__source, Kbin_dJ64__zeroconf_avahi_suite__debian_jessie_amd64__binary 18:06:21 Writing groovy script '/tmp/reconfigure_jobs/reconfigure_jobs.groovy' to reconfigure 4 views and 5704 jobs 18:06:22 + echo # END SECTION 18:06:22 # END SECTION 18:06:23 ERROR: Build step failed with exception 18:06:23 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: 18:06:23 Script1.groovy: 12: unable to resolve class org.apache.xml.serialize.OutputFormat 18:06:23 @ line 12, column 1. 18:06:23 import org.apache.xml.serialize.OutputFormat 18:06:23 ^ 18:06:23 18:06:23 Script1.groovy: 13: unable to resolve class org.apache.xml.serialize.XMLSerializer 18:06:23 @ line 13, column 1. 18:06:23 import org.apache.xml.serialize.XMLSerializer 18:06:23 ^ 18:06:23 18:06:23 Script1.groovy: 1: unable to resolve class difflib.DiffUtils 18:06:23 @ line 1, column 1. 18:06:23 import difflib.DiffUtils 18:06:23 ^ 18:06:23 18:06:23 3 errors 18:06:23 18:06:23 at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310) 18:06:23 at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:946) 18:06:23 at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) 18:06:23 at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542) 18:06:23 at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) 18:06:23 at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) 18:06:23 at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) 18:06:23 at groovy.lang.GroovyShell.parse(GroovyShell.java:700) 18:06:23 at groovy.lang.GroovyShell.parse(GroovyShell.java:736) 18:06:23 at groovy.lang.GroovyShell.parse(GroovyShell.java:727) 18:06:23 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(SecureGroovyScript.java:165) 18:06:23 at hudson.plugins.groovy.SystemGroovy.run(SystemGroovy.java:95) 18:06:23 at hudson.plugins.groovy.SystemGroovy.perform(SystemGroovy.java:59) 18:06:23 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 18:06:23 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 18:06:23 at hudson.model.Build$BuildExecution.build(Build.java:205) 18:06:23 at hudson.model.Build$BuildExecution.doRun(Build.java:162) 18:06:23 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) 18:06:23 at hudson.model.Run.execute(Run.java:1728) 18:06 ...
please fix this also: disable notification emails for both
maintainers
andcommitters
in all your*.yaml
files in your fork ofros_buildfarm_config
.... and make sure to update the email addresses listed under the
notification_emails
keys.@gvdhoorn Yes, thanks for the remind.