artifactoryBuilder not recognized in unclassified
See original GitHub issueYour checklist for this issue
🚨 Please review the guidelines for contributing to this repository.
-
Jenkins version 2.164.2
-
Plugin version 1.10.0
-
OS docker jenkins/jenkins:2.164.2-slim (debian)
Description
Jenkins failed to start because of an error with having artifactorybuilder
in the unclassified
section:
Apr 29, 2019 9:39:38 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed ConfigurationAsCode.init
java.lang.Error: java.lang.reflect.InvocationTargetException
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
... 8 more
Caused by: io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:633)
at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:665)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:649)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:548)
at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:277)
at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:269)
... 13 more
Caused by: io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Unclassified : artifactorybuilder.
Available attributes : administrativeMonitorsConfiguration, ansiColorBuildWrapper, artifactManager, bitbucketEndpointConfiguration, buildStepOperation, casCGlobalConfig, cloud, defaultView, extendedEmailPublisher, gitHubConfiguration, gitHubPluginConfig, gitSCM, globalBuildPromotedBuilds, globalConfigFiles, globalDefaultFlowDurabilityLevel, globalLibraries, httpRequestGlobalConfig, ivyBuildTrigger, ivyModuleSet, jacoco, jiraProjectProperty, location, lockableResourcesManager, mailer, masterBuild, mavenModuleSet, myView, nodeProperties, pipeline-model, plugin, pollSCM, projectNamingStrategy, quietPeriod, rebuildDescriptor, scmRetryCount, shell, sonarGlobalConfiguration, timestamperConfig, upstream, usageStatistics, viewsTabBar
at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:372)
at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:361)
at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:282)
at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$6(ConfigurationAsCode.java:665)
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:627)
... 18 more
If I search for artifactorybuilder
in this repo, there is one match showing it under jenkins
and two more recent matches showing it under unclassified
:
https://github.com/jenkinsci/configuration-as-code-plugin/search?q=artifactorybuilder&unscoped_q=artifactorybuilder
What could cause the error? How can I debug it? Can I use warn
instead of reject
to only log a warning when Jenkins starts. Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
[JENKINS-65687] Artifactory plugin not working with JCasC
Artifactory plugin not working with JCasC ... unclassified: artifactoryBuilder: artifactoryServers: |- FAILED TO EXPORT org.jfrog.hudson.
Read more >jenkinsci/configuration-as-code-plugin - Gitter
@jetersen extendedEmailPublisher is not part of unclassified anymore? I am running into io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration ...
Read more >[HAP-1092] Support Configuration as Code - Jira - JFrog
Artifactory plugin can't be fully configured nor exported by Configuration-as-Code. Main reason is that ArtifactoryBuilder$DescriptorImpl, ArtifactoryServer ...
Read more >Delete blocks in YAML file using Python - Stack Overflow
I simply made a mistake in the 'unclassified' word, but now the code is correct. – ccre. Nov 30, 2021 at 0:49. Thanks...
Read more >Extension Points defined in Jenkins Core - GitHub Pages
Non Dynamic Hello World: TESTING Plugin: org.jenkinsci.plugins.sample. ... A CrumbIssuer represents an algorithm to generate a nonce value, known as a crumb ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you can try setting:
but then you miss the safety of not getting notified when you put a mistake in your config file.
Its there if you do need it for a specific case though
It’s fine, you need to remove invalid elements.
CasC doesn’t allow what it doesn’t know about, if you’re testing a change do it on an already running jenkins, it won’t exit on failure then.