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

**URL:** <https://community.postman.com/t/how-to-do-postman-api-testing-in-jenkins-for-a-maven-spring-boot-application/29797>\
**Category:** Help Hub\
**Tags:** newman-project, collections, postman-api, maven, api-test\
**Created:** [November 16, 2021, 11:53pm UTC](https://community.postman.com/t/how-to-do-postman-api-testing-in-jenkins-for-a-maven-spring-boot-application/29797 "2021-11-16T23:53:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekvells](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@vivekvells](https://community.postman.com/u/vivekvells)\
**Post date:** [November 16, 2021, 11:53pm UTC](https://community.postman.com/t/how-to-do-postman-api-testing-in-jenkins-for-a-maven-spring-boot-application/29797/1 "2021-11-16T23:53:09Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, 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](https://github.com/postmanlabs/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](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
Hi all, Can someone help me on how to integrate postman api testing in my maven spring boot application via jenkins pipeline?

_I’ve already tried_:  
I am able to get it working by integrating newman.js like mentioned here: [Maven plugin for Proxy deployment and running POSTMAN test cases - Apigee - Google Developer forums](https://www.googlecloudcommunity.com/gc/Apigee/Maven-plugin-for-Proxy-deployment-and-running-POSTMAN-test-cases/td-p/8392).

but, this involves having a node\_modules directory containing all newman related files which doesn’t seem like a good fix as it adds tons of additional files and increasing app size and few might find this confusing.

I am looking for more on a better clean solution. can someone please share any info on this?

---

<div class="post-metadata">

**Author:** ![vivekvells](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@vivekvells](https://community.postman.com/u/vivekvells)\
**Post date:** [November 18, 2021, 6:25pm UTC](https://community.postman.com/t/how-to-do-postman-api-testing-in-jenkins-for-a-maven-spring-boot-application/29797/2 "2021-11-18T18:25:56Z")

</div>

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/](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 🙌

sharing the screen shot of jenkins job configuration

 ![Screen Shot 2021-11-18 at 12.25.16 PM](https://us1.discourse-cdn.com/getpostman/original/3X/b/9/b94b4954bbe4bfbeae4e71ee8eb6a6546415d21a.png)
