zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
114 stars 86 forks source link

setup profile failing - Cannot autolaunch D-Bus without X11 $DISPLAY #1462

Closed tomasbohunek closed 1 year ago

tomasbohunek commented 2 years ago

On our jenkins nodes (CentOS 7.6 - connected via SSH) we were not able to run zowe-cli with CredentialsManager support based on this guidelines: https://docs.zowe.org/stable/user-guide/cli-configure-scs-on-headless-linux-os/ We were able to run with disabled CredentialsManager via:

cat ~/.zowe/settings/imperative.json
{
  "overrides": {
    "CredentialManager": "false"
  }
}
zFernand0 commented 1 year ago

In the case of CI tools, we often recommend to use the mechanism for storing secrets provided by the CI tool of choice. For instance, you could use Jenkins Secrets for storing credentials (which Jenkins should mask in console output) and provide those as command options (--user $USER_JENKINS_SECRET), assign them to zowe environmental variables (ZOWE_OPT_USER), or provide them in cli command that updates the config files (zowe config set profiles.zosmf.properties.user $USER_JENKINS_SECRET).