Hi Victor,

you mean calling mvn directly? Yes, that should work, but this is not the desirable way... Furthermore that means, that we need to change all jobs (> 80) and all Maven build steps in there to shell/batch steps. :(

Is that the only possible solution? Are there some more ideas?

Cheers,

Maik


Am 18.11.2016 um 23:23 schrieb Victor Martinez:
Hi,

Can you try with EnvInject-Plugin plus Shell step/Batch step in your freestyle projects?

Cheers

On Friday, 18 November 2016 20:47:11 UTC, M. Richey wrote:

    Hello everybody,

    we are on our way on to Maven 3. Therefore we once would like to use
    Maven 2 for our build and Maven 3 the next time. Unfortunately
    there is
    no option in the Parameterized Trigger Plugin where to define which
    Maven version to use. Trying to set the path to either Maven 2 or
    Maven
    3 in the PATH environment variable by the EnvInject-Plugin does
    not work
    either. It seems that the PATH variable does not get evaluated during
    the Maven build step in our freestyle projects.

    Does anyone have an idea on how to switch the Maven runtime at build
    execution time?

    Thanks in advance,

    Maik

--
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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4153204e-6461-40ef-ad30-a4d75821d4a1%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/4153204e-6461-40ef-ad30-a4d75821d4a1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56483a23-7c44-7eff-bdd4-70cd6fec7739%40gmx.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to