When a Perforce repository is linked to Bamboo, we do not set the Perforce environment variables that are required to override the defaults. These include:
We set these values in the Linked repository settings, but if the environment variable is not present, we use the defaults. Under the hood, this is because Bamboo triggers the Perforce commands with a script.
Implement a solution to set the values in Linked repository settings as their respective environment variables.
|Linked repository setting||P4 environment variable|
Run p4 login when the repository is added, and then on startup.
Please set these as environment variables from your command line
Run p4 login – this also allows your password to not be an environment variable, which may be desirable.
If you are running Bamboo and Perforce on the same server:
On Unix machines, you can also run configure-helix-p4d.sh to configure the Perforce Daemon. This will configure /etc/perforce/p4dctl.conf.d/master.conf which the Daemon uses to set its variables on startup