windows - Why Jenkins failed with Cordova multi configuration project with build as failure? -


i beginner , new developer jenkins, installed jenkins , started , configured sample cordova project it. created multi - configuration project, configure page contains following details.

1.multi-configuration project name : phonegap 2. github project url : 3. source code management : git repositories : repository url : 4. build triggers poll scm schedule time :h/5 **** 5. configuration matrix name : platforms values: windows android 6. build command : cd projectname cordova platform add $platform cordova build , appiled save now, when create build failed 2 platforms configurations windows , android when clicked on each platform failed build says:

 c:\program files (x86)\jenkins\workspace\phonegap\platform\windows>cd helloworldcordova    c:\program files (x86)\jenkins\workspace\phonegap\platform\windows\xxxcordova>cordova platform add $platform  'cordova' not recognized internal or external command, operable program or batch file.   c:\program files   (x86)\jenkins\workspace\phonegap\platform\windows\helloworldcordova>cordova build   'cordova' not recognized internal or external command,  operable program or batch file.    c:\program files    (x86)\jenkins\workspace\phonegap\platform\windows\xxxcordova>exit 9009     build step 'execute windows batch command' marked build failure    finished: failure 

so missed , problem here ? default jenkins installed in c: can me how proceed such problem ? , things needs configure yet ?

thanks in advanced.

it seems npm not added system's environment variables/path getting error message 'cordova' not recognized internal or external command. npm manages 'cordova' command linking far remember

in windows

start -> control panel -> system , security -> system -> environment variables

add following end of path

;c:\users\user1\appdata\roaming\npm 

replace user1 username on command being executed

semi-colon important splits entry last existing entry in path, , adding end important don't want break existing tools , such configured in path.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -