Usually, I used to run from command line (protractor config.js
).
I used protractor and java script.
PLS LET ME KNOW STEPS TO ACHIEVE RUNNING FROM JENKINS
To run from Jenkins , I created a batch file run.bat
containing (protractor config.js
).
JENKINS:
New project ->config system -> Execute window batch command (run.bat)
ERROR:
I received following error after running my job-
Started by user aaaa
Building in workspace C:\Users\AppData\Roaming\npm\node_modules\protractor\Workspace
[Workspace] $ cmd /c call C:\Windows\TEMP\jenkins483586556774856213.bat
C:\Users\AppData\Roaming\npm\node_modules\protractor\Workspace>call run.bat
C:\Users\AppData\Roaming\npm\node_modules\protractor\Workspace>protractor config2.js
'protractor' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\AppData\Roaming\npm\node_modules\protractor\Workspace>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE