I am trying to set up continuous code integration with the help of jenkins v1.592 I have an android hybrid code, which I'm, trying to build with jenkins. I have set up environment variables for ANT_HOME, JAVA_HOME, ANDROID_HOME, and added then to the PATH respectively. I also have added nodejs and npm to the PATH.
ant version 1.9.2
java version 1.8.0_25
npm version 1.4.28
cordova android version 3.5.1
C:\Users\userName>path
gives
C:\Users\userName\AppData\Roaming\npm;C:\Program Files\nodejs;C:\whateverElse...
jenkins $WORKSPACE = C:\Program Files (x86)\Jenkins\jobs\myProject\workspace\
now I set my cmd prompt to jenkins workspace and execute the following commands
cd myProject
cordova build android
I get BUILD_SUCCESSFUL after 24 seconds
Similarly, when I go to my local jenkins server
The jenkins dashboard is shown and I have set up myProject there and in the project configuration I have added the lines
"cd myProject
cordova build android"
in the build step and saved the configuration. When I try to build I get the following error
Started from command line by anonymous Building in workspace C:\Program Files (x86)\Jenkins\jobs\myProject\workspace Updating repository at revision '2014-12-02T15:20:23.437 +0530' At revision 263 no change for repository since the previous build [workspace] $ cmd /c call C:\Windows\TEMP\hudson3297478415472069526.bat
C:\Program Files (x86)\Jenkins\jobs\myProject\workspace>cd myProject
C:\Program Files (x86)\Jenkins\jobs\myProject\workspace\myProject>cordova build android
'node' is not recognized as an internal or external command, operable program or batch file. Build step 'Execute Windows batch command' marked build as failure Archiving artifacts Finished: FAILURE
Any help would be appreciated
The same issue exists on mac OSX
Best Regards