# Environment Variables does not updated properly on run time with Newman run on Bamboo

**URL:** <https://community.postman.com/t/environment-variables-does-not-updated-properly-on-run-time-with-newman-run-on-bamboo/29056>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [October 25, 2021, 7:35am UTC](https://community.postman.com/t/environment-variables-does-not-updated-properly-on-run-time-with-newman-run-on-bamboo/29056 "2021-10-25T07:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aynacisevda](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aynacisevda](https://community.postman.com/u/aynacisevda)\
**Post date:** [October 25, 2021, 7:35am UTC](https://community.postman.com/t/environment-variables-does-not-updated-properly-on-run-time-with-newman-run-on-bamboo/29056/1 "2021-10-25T07:35:49Z")

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

I try to run automatically my automated rest apis with newman on Bamboo.  
Here are the steps:

- I export my postman collection and environment variables as a json.
- Push collection and environment variables to Bitbucket.
- Then add a task to Bamboo Deployment phase to run my postman collection as : " _./node\_modules/.bin/newman run testautomation/API-Test-Collection.postman\_collection.json -r junitxray --reporter-junitxray-export ./examples/xray/result.xml -e testautomation/alfa.postman\_environment.json --export-environment testautomation/alfa.postman\_environment.json_ "   
After trigger the pipeline and finished, while review the result i figured out that some enviroment variables are null and some variables with a value are not passed to the next request so only first request executed succussefuly and the others fail.

Environment Variable Json File:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/7/70f1e25bb8a40e04fa2dcb6da44992a4f3b6534c.png)

Do you have any recommendation to overcome this urgent problem?

Postman Version : 9.1.1  
Newman Version: 5.3.0

---

<div class="post-metadata">

**Author:** ![aynacisevda](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@aynacisevda](https://community.postman.com/u/aynacisevda)\
**Post date:** [October 27, 2021, 6:37am UTC](https://community.postman.com/t/environment-variables-does-not-updated-properly-on-run-time-with-newman-run-on-bamboo/29056/2 "2021-10-27T06:37:48Z")

</div>

You can overcome this problem by following the instructions in this document : [A Beginner's Guide to Automated API Testing (Postman/Newman)](https://blog.scottlogic.com/2020/02/04/GraduateGuideToAPITesting.html)
