Hi,

Apparently 'cordova' is not on the %PATH% for the user running Jenkins. You may want to manually add the appropriate PATH entries before calling cordova, or you can set build variables in the job definition (Build Environment section, requires Envinject plugin).

Regards,
Eric

On 8/14/2015 1:08 PM, Shajimon Paremmal wrote:
HI,
I'm trying to build a sample mobile app using Apache CORDOVA in the Jenkins Master-Slave environment. The source files are present on a Jenkins slave running Windows Server 2012. I've specified the cordova commands in a .bat file and specified its path in the "Execute Windows batch command".

The build fails saying that "'cordova' is not recognized as an internal or external command,operable program or batch file."

I can very well run this batch file from cmd and it runs successfully.
Can anyone help me with this issue?

Additional info:
Contents of the .bat file;

echo Starting the CORDOVA Build process
cd C:\Cordova_Projects\workshop
call cordova platforms remove android
call cordova platforms add android
call cordova plugin add org.apache.cordova.device
call cordova plugin add org.apache.cordova.console
call cordova emulate android

Jenkins work directory on slave - C:\Jenkins_Works
Cordova project directory on slave - C:\Cordova_Projects\workshop

Thanks,
Shaji
--
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 <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bacd4605-bf42-4aa3-a1e6-9a0a9339a777%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/bacd4605-bf42-4aa3-a1e6-9a0a9339a777%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55CE5355.50002%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to