Skip to content

Instantly share code, notes, and snippets.

@r4v5
Created August 21, 2020 19:31
Show Gist options
  • Save r4v5/a1c31a29972a955ed97293e33a4a9b5f to your computer and use it in GitHub Desktop.
Save r4v5/a1c31a29972a955ed97293e33a4a9b5f to your computer and use it in GitHub Desktop.
jenkinsfile-runner fails to launch with a jdk tool configuration
tool:
jdk:
installations:
- name: "OpenJDK 8u202-b08"
properties:
- installSource:
installers:
- zip:
subdir: "jdk8u222-b10/Contents/Home"
url: "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u222-b10/OpenJDK8U-jdk_x64_mac_hotspot_8u222b10.tar.gz"
trilead-api:1.0.8
script-security:1.74
jdk-tool:1.1
command-launcher:1.4
structs:1.20
workflow-step-api:2.22
token-macro:2.12
bouncycastle-api:2.18
build-timeout:1.19.1
credentials:2.3.11
plain-credentials:1.7
ssh-credentials:1.18.1
credentials-binding:1.23
scm-api:2.6.3
workflow-api:2.40
workflow-support:3.5
durable-task:1.34
workflow-durable-task-step:2.35
jquery3-api:3.5.1-1
snakeyaml-api:1.26.4
jackson2-api:2.11.1
plugin-util-api:1.2.2
echarts-api:4.8.0-2
junit:1.31
matrix-project:1.17
resource-disposer:0.14
ws-cleanup:0.38
pipeline-milestone-step:1.3.1
jquery-detached:1.2.1
ace-editor:1.1
workflow-scm-step:2.11
workflow-cps:2.82
pipeline-input-step:2.11
pipeline-stage-step:2.5
workflow-job:2.39
pipeline-graph-analysis:1.10
pipeline-rest-api:2.14
handlebars:1.1.1
momentjs:1.1.1
pipeline-stage-view:2.14
pipeline-build-step:2.13
pipeline-model-api:1.7.1
pipeline-model-extensions:1.7.1
cloudbees-folder:6.14
apache-httpcomponents-client-4-api:4.5.10-2.0
jsch:0.1.55.2
git-client:3.4.1
git-server:1.9
workflow-cps-global-lib:2.17
display-url-api:2.3.3
mailer:1.32
branch-api:2.5.9
workflow-multibranch:2.22
pipeline-stage-tags-metadata:1.7.1
workflow-basic-steps:2.20
pipeline-model-definition:1.7.1
lockable-resources:2.8
workflow-aggregator:2.6
okhttp-api:3.14.9
github-api:1.115
git:4.3.0
github:1.31.0
github-branch-source:2.8.3
pipeline-github-lib:1.0
ssh-slaves:1.31.2
matrix-auth:2.5.1
pam-auth:1.6
ldap:1.24
email-ext:2.75
config-file-provider:3.6.3
ssh-agent:1.20
configuration-as-code:1.36
configuration-as-code-groovy:1.1
ansicolor:0.7.2
adoptopenjdk:1.3
❯ CASC_JENKINS_CONFIG=./jenkins.yaml java -jar ~/Downloads/jenkinsfile-runner-1.0-beta-16.jar -p plugins.txt
No explicit version has been selected, using latest LTS
Running pipeline on jenkins 2.235.5
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/Users/masondonahue/Downloads/jenkinsfile-runner-1.0-beta-16.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-08-21 19:28:58.181+0000 [id=34] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init
io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.tools.ToolConfigurationCategory : jdk.
Available attributes : maven
at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:377)
at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:366)
at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:287)
at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$7(ConfigurationAsCode.java:746)
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:696)
Caused: io.jenkins.plugins.casc.ConfiguratorException: tool: error configuring 'tool' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:702)
at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:746)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:731)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:611)
at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:292)
at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:284)
Caused: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
Caused: java.lang.Error
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:1131)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-08-21 19:28:58.209+0000 [id=1] SEVERE h.i.i.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler#uncaughtException: A thread (Executing main/1) died unexpectedly due to an uncaught exception, this may leave your Jenkins in a bad way and is usually indicative of a bug in the code.
io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.tools.ToolConfigurationCategory : jdk.
Available attributes : maven
at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:377)
at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:366)
at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:287)
at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$7(ConfigurationAsCode.java:746)
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:696)
Caused: io.jenkins.plugins.casc.ConfiguratorException: tool: error configuring 'tool' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:702)
at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:746)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:731)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:611)
at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:292)
at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:284)
Caused: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
Caused: java.lang.Error
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:1131)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused: org.jvnet.hudson.reactor.ReactorException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:50)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1164)
at jenkins.model.Jenkins.<init>(Jenkins.java:964)
at hudson.model.Hudson.<init>(Hudson.java:85)
at io.jenkins.jenkinsfile.runner.JenkinsEmbedder.newHudson(JenkinsEmbedder.java:323)
at io.jenkins.jenkinsfile.runner.JenkinsEmbedder.before(JenkinsEmbedder.java:188)
at io.jenkins.jenkinsfile.runner.JenkinsLauncher.before(JenkinsLauncher.java:111)
at io.jenkins.jenkinsfile.runner.JenkinsLauncher.launch(JenkinsLauncher.java:75)
at io.jenkins.jenkinsfile.runner.App.run(App.java:13)
at io.jenkins.jenkinsfile.runner.bootstrap.Bootstrap.run(Bootstrap.java:307)
at io.jenkins.jenkinsfile.runner.bootstrap.Bootstrap.main(Bootstrap.java:128)
^C%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment