Hi'

I would like to access maven from an Execute shell build step of a maven 
based build.

In the given job I am using an Invoke top-level Maven targets build step to 
run the main maven goals. Here I selected the latest maven version (3.0.4 
for example). Is it possible somehow to access this selected maven from a 
later executed Execute shell script build step (to use the mvn command for 
custom purposes)?

I do not really want to use the exact path for this like 
"/usr/local/apache-maven-3.0.4/bin/mvn" 
which I can get if I run the job and search for it in the console. Isn't 
there a way for example to set a MAVEN_HOME environment variable with the 
selected maven's home path?

Cheers'

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to