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.
I have Jenkins running newman. Sometimes, I have some failures in assertions but it still returns a 0 return code (AKA succesful).
This is what it looks like in the console:
04:48:15 ┌─────────────────────────┬───────────────────────┬───────────────────────┐
04:48:15 │ │ executed │ failed │
04:48:15 ├─────────────────────────┼───────────────────────┼───────────────────────┤
04:48:15 │ iterations │ 1 │ 0 │
04:48:15 ├─────────────────────────┼───────────────────────┼───────────────────────┤
04:48:15 │ requests │ 49 │ 0 │
04:48:15 ├─────────────────────────┼───────────────────────┼───────────────────────┤
04:48:15 │ test-scripts │ 96 │ 0 │
04:48:15 ├─────────────────────────┼───────────────────────┼───────────────────────┤
04:48:15 │ prerequest-scripts │ 52 │ 0 │
04:48:15 ├─────────────────────────┼───────────────────────┼───────────────────────┤
04:48:15 │ assertions │ 74 │ 3 │
04:48:15 ├─────────────────────────┴───────────────────────┴───────────────────────┤
04:48:15 │ total run duration: 16m 57.4s │
04:48:15 ├─────────────────────────────────────────────────────────────────────────┤
04:48:15 │ total data received: 432.76kB (approx) │
04:48:15 ├─────────────────────────────────────────────────────────────────────────┤
04:48:15 │ average response time: 20.6s [min: 159ms, max: 4m 32.2s, s.d.: 1m 4.4s] │
04:48:15 └─────────────────────────────────────────────────────────────────────────┘
Even though in the assertions row there are 3 failures, it still returns a 0 RC. Is there a way to have it return a non-0 ReturnCode? Some additional flag?
Thanks ahead!