Hi, I am trying to run my Postman collection from Jenkins. I have created a freestyle project and in the Build > Execute Shell - I have given command as below
newman run βhttps://www.getpostman.com/collections/5876dd3266bdcecd7596β
The Build is failing and I see below console output:
Started by user Admin User
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Postman
[Postman] $ /bin/sh -xe /tmp/jenkins219625084961727573.sh
+ newman run https://www.getpostman.com/collections/5876dd3266bdcecd7596
newman: required node version >=10
Build step βExecute shellβ marked build as failure
Finished: FAILURE
Please help me resolve this problem. OS = Ubuntu 18.04.5 LTS
NOTE: I am able to successfully able to run the collection from command line. And node version is above 10
node -v = 10.2.0 ; npm -v = 5.6.0 ; newman -v = 5.2.0