Java version on the slave is 11
& that of the Jenkins machine is 8.
Java Versions must be aligned between Jenkins master and agents. https://jenkins.io/doc/administration/requirements/upgrade-java-guidelines/#jvm-version-on-agents
I had tried this but when I do that the deployment says successful but actually doesn't.
So I've kept it back at v8
Kirat SinghIf you see any issues with upgrading Jenkins to Java 11 according to the https://jenkins.io/doc/administration/requirements/upgrade-java-guidelines guidelines, please submit a ticket about it with reproduction steps. We will appreciate any feedback about such upgrade issues
CC Adrien Lecharpentier