I've adapted the following example from the Jenkins Kubernetes plugin documentation
I've created a simple Jenkins pipeline job and added the groovy script in line. Maven pulls all the dependencies, but weirdly fails at the compilation step.
How does one go about even debugging this as the failure happens on a temporary container?
The issue was with the settings.xml. It had a windows path which messed up maven's classpath. I added a line "sleep 99m" to keep the container on hold and then I SSH'd in to the container to debug to identify the root cause.