withMaven using Takari's maven wrapper

20 views
Skip to first unread message

Dan Tran

unread,
Feb 20, 2018, 12:51:28 PM2/20/18
to Jenkins Users
Hi

my declarative pipeline invoking withMaven + takari wrapper, it bails if I don't define maven label

    withMaven( maven: 'M3') {  
         bat "./mvnw ...."
    }

Without  maven defined, it errors out as

   ERROR: Could not find maven executable, please set up a Maven Installation or configure MAVEN_HOME or M2_HOME environment variable

This works fine when running inside docker

is it a bug? anyone sees this. I am not able to find any bug filed for this scenario yet

Thanks

-Dan

Baptiste Mathus

unread,
Feb 20, 2018, 2:58:26 PM2/20/18
to jenkins...@googlegroups.com
Hello Dan,

I guess you want to file a bug report. I suspect not that many people use the takari maven wrapper, and even less also using the pipeline-maven plugin with.
But for me it looks like a legitimate use case.

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 jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/48fd9ab5-e34d-4446-9fcb-25d23ce53b6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages