Closed AmmarRami closed 9 months ago
Please use the recent version of Grails framework. We stopped supporting Grails 2. From the above log, it appears that the application is not able to resolve dependencies. It might be due to missing or wrong repositories.
I would recommend checking where the dependencies are located and cross-check it's coordinates and repositories.
Expected Behavior
When I run jenkins pipeline using a kubernetes agent, my pipeline create pod in the kubernetes namespace, attach this agent to master and use it to build, testing, deploying, etc To run pod in kubernetes my sharedlib use snakeYaml version 1.25 to merge yamls and generate global yaml script of pod. With jenkins 2.387.1 and kubernetes plugin version 3896.v19b_160fd9589 this work very well
Actual Behaviour
When I upgraded to jenkins version 2.401.3 running with java 11.0.21and upgraded all plugins to last version I am not able to launch kubernetes agent. My agent is a pod created via a yaml stream. This yaml stream il maked with MargeYaml groovy script wich use snakeYaml version 1.25. When he launch agent I have this error: java.lang.NullPointerException: LoaderOptions must be provided When I see the tag 1.25 of the groovy library I constat that the constructor SafeConstructor don't have LoaderOptions instance param. So, I upgraded my grappe dependencies snakeYaml to 2.0 in my yaml file: https://github.com/grab(group='org.yaml', module='snakeyaml', version='2.0') but my groovy bin don't understand any groovy libraries and I have these errors:
Can you help me to resolve this problem please?
Steps To Reproduce
No response
Environment Information
Example Application
Jenkins
Version
2.4.11