# Running collection in jenkins

**URL:** <https://community.postman.com/t/running-collection-in-jenkins/14083>\
**Category:** Help Hub\
**Tags:** newman-project, collections\
**Created:** [July 13, 2020, 11:19am UTC](https://community.postman.com/t/running-collection-in-jenkins/14083 "2020-07-13T11:19:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijaynrt85](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vijaynrt85](https://community.postman.com/u/vijaynrt85)\
**Post date:** [July 13, 2020, 11:19am UTC](https://community.postman.com/t/running-collection-in-jenkins/14083/1 "2020-07-13T11:19:00Z")

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

Hi

I have a environment variable in my collection and while running the collection using newman i am exporting the environment json and collection json and executing it which it works fine. Now i am trying to run the same commands in jenkins locally but its not working fine.

Please guide me how to give environment collection in jenkins

npm install newman  
npm install -g newman-reporter-htmlextra  
newman run “collectionurl” --reporters=cli,htmlextra
