Currently in my jenkins setup I have 1 master and 2 nodes. One node has jdk 7 and another node has jdk8. Now I want to execute pipelines under jdk8 but not under jdk7 as I have migrated the application from jdk7 to 8.
If I run the pipelines only on the node where jdk8 is installed will work?? OR do I need to do the changes in the pipeline as such as adding new jdk8 version as env variable in the package stage in the pipeline?
just I want to compile the code under jdk8 instead of 7 in jenkins?