How to do postman api testing in jenkins for a maven spring boot application

i was able to get this working in a better and minimalistic way by following this: https://learning.postman.com/docs/running-collections/using-newman-cli/integration-with-jenkins/ .

steps:

  1. configure jenkins pipeline to use node
  2. in the build script → install newman package and use newman run <PATH_TO_COLLECTION>
  3. build it :raised_hands:

sharing the screen shot of jenkins job configuration