question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE when apply yaml on kubernetes

See original GitHub issue
java.lang.NullPointerException
	at io.jenkins.plugins.casc.ConfigurationAsCode.collectProblems(ConfigurationAsCode.java:235)
	at io.jenkins.plugins.casc.ConfigurationAsCode.doCheckNewSource(ConfigurationAsCode.java:211)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:537)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)

the yaml could apply in 1.0 version, but not 1.8

jenkins:
  mode: EXCLUSIVE
  numExecutors: 5
  scmCheckoutRetryCount: 2

Please make sure to provide following information in your issue description

  • Jenkins version 1.138.4
  • Plugin version
  • docker

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jetersencommented, Mar 27, 2019

@f1nger that depends on how you look at it 😅

I see it as fixing it since people wanted recursive folder lookup and that’s what the …data folder did, it broke recursive folder lookup.

@runzexia Docs can be outdated. I welcome you to contribute! 😃

The project is open source after all and we cannot maintain everything while keeping our sanity and our job 😓 I for one don’t use kubernetes together with JCasC at the moment 😢

0reactions
runzexiacommented, Mar 28, 2019

I will try to update the docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

nullpointer exception while deploying via kubernetes plugin in ...
We are using Google kubernetes engine-plugin- 0.8.1 for Jenkins for deploying an app via yaml files, strangely we are getting java ...
Read more >
Managing Resources | Kubernetes
yaml , .yml , or .json . It is a recommended practice to put resources related to the same microservice or application tier...
Read more >
Deployments - Kubernetes
kubectl apply -f https://k8s.io/examples/controllers/nginx-deployment.yaml. Run kubectl get deployments to check if the Deployment was created.
Read more >
Kubectl Reference Docs - Kubernetes
Edit the data in registry.yaml in JSON then create the resource using the ... This flag is useful when you want to perform...
Read more >
GitLab Runner Helm Chart
The official way of deploying a GitLab Runner instance into your Kubernetes cluster is by using the gitlab-runner Helm chart. This chart configures...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found