bbrun icon indicating copy to clipboard operation
bbrun copied to clipboard

Should bbrun set environment Variable CI=true

Open busch-matthias opened this issue 7 years ago • 4 comments

I think Bitbucket use the environment Variable "CI" to indicate that the script is running on a pipeline. Should bbrun automatically set CI to "true" ?

busch-matthias avatar Mar 19 '18 16:03 busch-matthias

I don't think so, this variable is normally used to tell whether we're executing the build scripts in the actual CI environment or in our local machines.

To emulate the CI environment we can always execute bbrun with --env CI=true

mserranom avatar Mar 19 '18 18:03 mserranom

Yes it should. the point of this tool is to simulate bitbucket pipelines.

airtonix avatar Jun 22 '18 02:06 airtonix

Reopening for discussion. Will reevaluate based on what other CLI tools are doing (circlecli CLI, travis CLI, etc...)

mserranom avatar Jul 12 '18 05:07 mserranom

Just my 2cents. But I think as an emulator of the bitbucket pipeline it should. I for instance use the presence of this variable to set up the testing environment. I agree --env CI=true could be used but that represents poor discoverability and doesn't seem to do what is in the description

ndastur avatar Oct 10 '18 14:10 ndastur