Postman/Newman/Jenkins Console Output


To preface, I’m now to Postman/Forums. I am intending to run my postman collection through Newman and into Console Output. When I run to CMD I get a successful completion message with all of my Postman results. However, when I try to add this into Jenkins and run it through 'Execute Shell", I get the following:

As you can see, it says Finished: Success, but does not give me any details.

I have verified the following:

  1. npm and node installed globally.
  2. newman installed globally.
  3. Tried using both Windows Batch command and execute shell

Other notes:

  • Using Windows 10
  • Details appear if I run via CMD when using command newman run (Public link) or using newman run (postman location directory), but neither outputs postman details via Jenkins.

Please assist.

if your newman file is Empty.

then make the new Workspace in .jenkins folder (C:\Users\Win10.jenkins\workspace) and paste your collection in it manually and run it with newman (make sure that newman should be present in the current directory)

OR follow this Example command (Windows)

newman run “D:\Automation\Postman\ STG & PROD.postman_collection.json” -e “D:\Automation\Postman\ STG & PROD.postman_environment.json”