Jenkins build fails (newman: required node version >=10) for newman project Execute Shell newman run

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

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

Are you able to echo the Node version from that Jenkins job?

Hi Danny, thanks for your question. I’m new to jenkins and do not know how to check the node version.
Could you please help me to find the version being used and how to set it to the required version?
If you could guide me with any site, I can go through it.

In the script, you have added to run Newman add the echo statement in there. The same as you would use to return the version in your terminal.