Closed multani closed 5 years ago
@multani I use the SCM Sync configuration plugin and it's able to export the whole config.xml
which contains the Nomad Cloud config:
@phedoreanu That's good to know it works in other cases as well!
SCM Sync seems to be unmaintained and deprecated in favor of "Configuration as code" though, so it might still be worthwhile to have a look at why it goes into this infinite recursive loop.
Go for it, if you have the time and energy ;)
I tried a basic Jenkins installation with the Nomad Plugin and the Configuration as code plugin.
I setup a new "Nomad cloud" with a super basic template as in the screenshot (the other fields are empty):
Then, exporting this configuration using JENKINS/configuration-as-code/viewExport produces an infinite loop followed by a
java.lang.StackOverflowError
error.The exported YAML configuration by the "Configuration as code" plugin, when it manages to output something, produces something like:
There's the related issue JENKINS-58491 on Jira but it pings Ivo Verberk and the issue has been closed since then, although I think the original recursion problem describe in the issue is actually still present in the plugin.
It would be cool if we could use both plugins together and backup/reconfigure the Nomad Plugin configuration using the Configuration as Code plugin! :+1: