Re: 'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread shekhar sharma
Thank you all, for taking time to look into this and for the suggestions.

1. It is freestyle job only.
2. Yes, I am able to run the same maven command(mvn test) from cmd window 
and projects runs fine.
3. Yes, I am using the local installation and MAVEN_HOME and path are 
configured correctly.
4. Vincent, You were right that ver 3.2.x has mvn.bat. So, I have 
downgraded the version to 3.2.x and configured all the required paths in 
env variable as well as in jenkins. But no luck. :(

Please find the screen shot  of jenkins config and let me know if i am 
missing something there or need to update something else.

Thanks.

On Tuesday, 9 June 2015 21:49:14 UTC+5:30, shekhar sharma wrote:
>
> I have configured a maven project with Jenkins. But while doing build now 
> it is failing with the error attached in text file. Even though Maven is 
> configured correctly and i am able to run the same project from command 
> window with the commands 'mvn test'. Please help if anybody have any idea.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dca69914-4b4c-4979-893b-ef769d6ed8d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


'mvn.bat' is not recognized as an internal or external command

2015-06-09 Thread shekhar sharma
I have configured a maven project with Jenkins. But while doing build now 
it is failing with the error attached in text file. Even though Maven is 
configured correctly and i am able to run the same project from command 
window with the commands 'mvn test'. Please help if anybody have any idea.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5a87a70f-99db-4239-915c-64610bb60a3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Started by user anonymous
Building in workspace C:\Users\Shesharm\.jenkins\workspace\DataDrivenFramework
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # 
 > timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url 
 > https://github.com/shesharm/ddf_Shekhar # timeout=10
Fetching upstream changes from https://github.com/shesharm/ddf_Shekhar
 > C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe -c core.askpass=true fetch --tags 
 > --progress https://github.com/shesharm/ddf_Shekhar 
 > +refs/heads/*:refs/remotes/origin/*
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse 
 > "refs/remotes/origin/master^{commit}" # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse 
 > "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 1919b5aa87a6c8482893afed90e7cdead9d28cb0 
(refs/remotes/origin/master)
 > C:\Program Files (x86)\Git\cmd\git.exe config core.sparsecheckout # 
 > timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe checkout -f 
 > 1919b5aa87a6c8482893afed90e7cdead9d28cb0
 > C:\Program Files (x86)\Git\cmd\git.exe rev-list 
 > 1919b5aa87a6c8482893afed90e7cdead9d28cb0 # timeout=10
[DataDrivenFramework] $ cmd.exe /C '"mvn.bat -f 
C:\Workspace\MySampleMavenProj\pom.xml 
-Dmaven.repo.local=C:\Users\Shesharm\.jenkins\workspace\DataDrivenFramework\.repository
 test && exit %%ERRORLEVEL%%"'
'mvn.bat' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Invoke top-level Maven targets' marked build as failure
Sending e-mails to: sharmashekha...@gmail.com
ERROR: 534-5.7.14 
 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 fs16sm6074433pdb.12 - 
gsmtp

javax.mail.AuthenticationFailedException: 534-5.7.14 
 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 fs16sm6074433pdb.12 - 
gsmtp

at 
com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at 
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
at javax.mail.Service.connect(Service.java:317)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
at javax.mail.Transport.send0(Transport.java:194)
at javax.mail.Transport.send(Transport.java:124)
at hudson.tasks.MailSender.execute(MailSender.java:121)
at hudson.tasks.Mailer.perform(Mailer.java:138)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
at hudson.model.Run.execute(Run.java:1766)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Finished: FAILURE