Job DSL plugin: Reload button works fine on http://myJenkinsServer/configuration-as-code/ but fails when using a Groovy script to reload the same file?

Skip to first unread message


Jan 19, 2021, 7:07:05 PM1/19/21
to job-dsl-plugin
See this Reddit post for details and example code:

Basically, reloading manually via the "configuration-as-code" page works fine, but reloading using "ConfigurationAsCode.get().configure()" within a Groovy script fails when folders and/or jobs are defined within the yaml file. The Groovy reload command works fine when there are NOT jobs or folders defined within yaml, so I think the script permissions and syntax are correct.
Reply all
Reply to author
0 new messages