Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull

Jenkins setup:

HI Everyone, I am currently on 2.431 version and my jenkins is running in a POD in EKS.

recently there was a small pod template definition that has to be updated so I have updated the values file and tried upgrading the helm release.

I tried running the following command:

helm upgrade --install -n test-ci test-jenkins jenkins/jenkins -f .\helm-values\test_jenkinsv2.yaml

After this no matter what my jenkins is not coming and throwing the below error:

> 2024-10-21 06:53:42.183+0000 [id=37] WARNING c.c.h.p.folder.AbstractFolder#loadChildren: could not load /var/jenkins_home/jobs/Tools/jobs/cumulocity-ci/branches/release-r1018-452-0.j4b866
> 
> java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
> 
> at jenkins.model.Jenkins.get(Jenkins.java:824)
> 
> at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.getDescriptor(AbstractFolder.java:503)
> 
> at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.Folder.getDescriptor(Folder.java:345)
> 
> at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.Folder.getDescriptor(Folder.java:70)
> 
> at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.childNameGenerator(AbstractFolder.java:495)
> 
> at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.getRootDirFor(AbstractFolder.java:538)
> 
> at PluginClassLoader for cloudbees-folder//com.cloudbees.hudson.plugins.folder.AbstractFolder.getRootDirFor(AbstractFolder.java:135)
> 
> at hudson.model.AbstractItem.getRootDir(AbstractItem.java:201)

I am not getting if its a plugin issue or something else.

Can some one please help me resolving this issue.