When calling kubelogin with AZURE_CONFIG_DIR already set in a Jenkins job, just use that variable on the command line for consistency with the variable Jenkins is using, instead of doing $WORKSPACE/.azure which might not be where AZURE_CONFIG_DIR points to.
When calling
kubelogin
withAZURE_CONFIG_DIR
already set in a Jenkins job, just use that variable on the command line for consistency with the variable Jenkins is using, instead of doing$WORKSPACE/.azure
which might not be where AZURE_CONFIG_DIR points to.