forever run for node.js using jenkins on windows -


i trying run forever command node.js script run in background. complete command

"c:/users/administrator/appdata/roaming/npm/forever.cmd" -c "c:/program files/nodejs/node.exe" start app.js 

this works fine when ran on command prompt directly. when put build step in jenkins following error

c:\program files (x86)\jenkins\workspace\apps>"c:/users/administrator/appdata/roaming/npm/forever.cmd" -c "c:/program files/nodejs/node.exe" start app.js  'node' not recognized internal or external command, operable program or batch file. build step 'execute windows batch command' marked build failure 

path on machine correctly set , include path node application. confirmed command runs when run locally on slave machine without giving absolute path. have provide path node executable in command using -c option in case not pick path variable.

not sure if may because jenkins run things on window using jvm client?

any suggestion resolve this.

thanks manoj

changes path (such done after installing software node) not picked processes running @ time of installation.

these processes (jenkins process, , slave processes on remote machines, in case) need restarted after installation, in order inherit newly modified path.

when test login in remotely , running commands manually, login session command prompt newly created, inherits new path , tests work, jenkins slave process hasn't been restarted since installation not have new path


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -