Trying to override Jenkins master maven configuration on on-demand Jenkins slave created using ec2 plugin. As We are using different maven versions of Maven, So I need to override the global configuration with Slave node configuration.
Maven configuration on master:
Requirement:
I need to set Maven home to /opt/apache-maven-3.2.5 on Slave.
Tool was already installed as it was just an AWS AMI. When ever I run the job it's checking Maven in /home/csbuild/build/apache-maven-3.0.5, But I want to use Maven in /opt/apache-maven-3.2.5. How can I update the MAVEN_HOME in the job?
Jenskins version:1.656

