+ gcloud version
ERROR: gcloud failed to load: Active configuration name could not be read from: [/root/.config/gcloud/active_config]. Ensure you have sufficient read permissions on required active configuration in [/root/.config/gcloud/configurations].
Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
from googlecloudsdk.api_lib.util import exceptions
from googlecloudsdk.core import log
_log_manager = _LogManager()
self.Reset(sys.stdout, sys.stderr)
std_console_formatter = _ConsoleFormatter(stderr)
use_color = not properties.VALUES.core.disable_color.GetBool(validate=False)
named_configs.ActivePropertiesFile.Load(),
force_create=False).file_path])
config_name = _EffectiveActiveConfigName()
config_name = _ActiveConfigNameFromFile()
.format(path, config.Paths().named_config_directory), exc)
Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
/usr/bin/python2
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/
Build step 'Execute shell' marked build as failure
Finished: FAILURE
+ sudo su bitnami -c gcloud version
Google Cloud SDK 290.0.0
alpha 2020.04.21
beta 2020.04.21
bq 2.0.56
core 2020.04.21
gsutil 4.49
kubectl 2020.04.21
+ sudo su jenkins -c gcloud version
Google Cloud SDK 290.0.0
alpha 2020.04.21
beta 2020.04.21
bq 2.0.56
core 2020.04.21
gsutil 4.49
kubectl 2020.04.21
Finished: SUCCESS
Hi Jota, ran the three commands individually bitnami and jenkins worked, default didn't...