Submit Your Ideas

We want to hear from you - vote for the features and improvements you'd most like to see, or submit your own ideas if you don't find them already listed.

Set CIRCLECI_BUILD_NUM in local builds

My request: Don't unset the `CIRCLECI_BUILD_NUM` in a local CircleCI build, please.

 

The local CircleCI build unset's it:

====>> Spin up Environment
Build-agent version 0.0.5763-f6bc418 (2018-05-22T19:06:47+0000)
Starting container [...]
using image [...]

Using build environment variables:
[...]
CIRCLE_BUILD_NUM=

That means you can't reset it with

circleci build --env CIRCLE_BUILD_NUM=manual-1

See also: https://discuss.circleci.com/t/setting-circle-build-num-in-local-builds/16743


We tag our Docker image builds with the `CIRCLECI_BUILD_NUM`. It would be nice that we can test the CircleCI build locally again. It was possible in an older CLI version.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • May 23 2018
  • Future consideration
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    09 Aug 02:24

    I could see if being good allowing you to pass any environment variable in. Include via a file would be fantastic, that also allows you to include project and context ones too, simple yaml would be great here.  Then a `--env` option to override any of those or supply any additional ones.