# How to run multiple collections in Jenkins

**URL:** <https://community.postman.com/t/how-to-run-multiple-collections-in-jenkins/14768>\
**Category:** Help Hub\
**Tags:** multiple, jenkins, collections, htmlreporter, newman-project\
**Created:** [August 6, 2020, 7:47am UTC](https://community.postman.com/t/how-to-run-multiple-collections-in-jenkins/14768 "2020-08-06T07:47:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiharikaSadula](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@NiharikaSadula](https://community.postman.com/u/NiharikaSadula)\
**Post date:** [August 6, 2020, 7:47am UTC](https://community.postman.com/t/how-to-run-multiple-collections-in-jenkins/14768/1 "2020-08-06T07:47:24Z")

</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).

Hey, I am running a collection in Jenkins for an api.I get the html report too for it.  
How do I run multiple collections in the same stage (now deploying multiple apis(jars) in the jenkins job, so must test ll the apis). Is one report generated for all the collections or a seperate reports?

Here are package.json, jenkins stage and publishHtml part to publish Report for 1 collection.

package.json:

{  
“name”: “postman-newman-jenkins”,  
“version”: “1.0.0”,  
“description”: “My Test Project”,  
“directories”: {  
“tests”: “tests”  
},  
“scripts”: {  
“newman-tests”: “newman run --disable-unicode integration\_tests/collection.json --reporters cli,junit,html --reporter-junit-export newman.xml --reporter-html-export report/${BUILD\_NUMBER}/htmlreport.html --insecure”  
},  
“author”: “Test Author”,  
“dependencies”: {  
“newman”: “^5.1.2”  
}  
}

Jenkins Stage:

stage(‘integration test’) {  
steps {  
//sh ‘sudo npm install -g newman-reporter-html’  
sh ‘npm run newman-tests’  
junit ‘newman.xml’  
}  
}

and the post action:

publishHTML (target: [  
allowMissing: false,  
alwaysLinkToLastBuild: false,  
keepAll: true,  
reportDir: ‘report/${BUILD\_NUMBER}’,  
reportFiles: ‘htmlreport.html’,  
reportName: ‘Postman Integration Test Report’  
])

---

<div class="post-metadata">

**Author:** ![srepetop](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@srepetop](https://community.postman.com/u/srepetop)\
**Post date:** [August 6, 2020, 11:24am UTC](https://community.postman.com/t/how-to-run-multiple-collections-in-jenkins/14768/2 "2020-08-06T11:24:41Z")

</div>

Hi there.

Seems there is some information about the same issue: [Help needed , How do i run all collections in one Folder](https://community.postman.com/t/help-needed-how-do-i-run-all-collections-in-one-folder/5356/4)

Hope that helps.
