How to override Maven home directory on Jenkins slave?

88 views
Skip to first unread message

praveen

unread,
Jun 29, 2016, 12:31:02 AM6/29/16
to Jenkins Users


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?


Job configuration:




Jenkins version:1.656





Auto Generated Inline Image 1
Auto Generated Inline Image 2
Reply all
Reply to author
Forward
0 new messages