Hi,
I´m using Jenkins 1.569 and job-dsl-plugin 1.25 (old versions, I know..)
When trying to migrate my existing code likejob {
name "${jobName}"
using("${templateName}")
..
}
into code that doesnt use the "using(${templateName}) anymore, I run into following Exception:Unreferenced Templates: template-Pipeline-env,template-Shutdown-WebLogic-env,template-Startup-WebLogic-env
FATAL: null
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922)
at java.util.HashMap$KeyIterator.next(HashMap.java:956)
at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection$WrappedIterator.next(AbstractMapBasedMultimap.java:484)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:701)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
at com.google.common.collect.Sets.removeAllImpl(Sets.java:1598)
at com.google.common.collect.Sets.removeAllImpl(Sets.java:1627)
at com.google.common.collect.AbstractMapBasedMultimap$WrappedSet.removeAll(AbstractMapBasedMultimap.java:614)
at javaposse.jobdsl.plugin.ExecuteDslScripts.updateTemplates(ExecuteDslScripts.java:226)
at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:183)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
at hudson.model.Run.execute(Run.java:1732)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
I than removed the JENKINS_HOME/javaposse.jobdsl.plugin.ExecuteDslScripts.xml file - but now the jobs are not updated - they are 1st deleted, and afterwards re-generated by the new code (without the using(...))
=> Is there a way to migrate the jobs without running into this kind of Exception - and with keeping all the history (builds, ...) of the jobs?
Thanx, Torsten
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/17616196-c39f-4c7a-9a30-d81aacb49566%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/26904e06-0ace-4140-8bbd-0b810ac369ad%40googlegroups.com.