jx create jenkins token

list of jx commands

jx create jenkins token

Adds a new username and API token for a Jenkins server

Synopsis

Creates a new user and API Token for the current Jenkins server

jx create jenkins token [username] [flags]

Examples

  # Add a new API Token for a user for the current Jenkins server
  # prompting the user to find and enter the API Token
  jx create jenkins token someUserName
  
  # Add a new API Token for a user for the current Jenkins server
  # using browser automation to login to the Git server
  # with the username an password to find the API Token
  jx create jenkins token -p somePassword someUserName

Options

  -t, --api-token string          The API Token for the user
  -m, --custom                    Use a custom Jenkins App instead of the default execution engine in Jenkins X
      --health-timeout duration   The maximum duration to wait for the Jenkins service to be healthy before trying to create the API token (default 30m0s)
  -h, --help                      help for token
  -j, --jenkins-name string       The name of the custom Jenkins App if you don't wish to use the default execution engine in Jenkins X
  -n, --name string               The name of the Git server to add a user
      --namespace string          The namespace of the secret where the Jenkins API token will be stored
      --no-rest                   Disables the use of REST calls to automatically find the API token if the user and password are known
  -p, --password string           The User password to try automatically create a new API Token
      --recreate-token            Should we recreate the API token if it already exists
      --timeout string            The timeout if using REST to generate the API token (by passing username and password)
  -u, --url string                The URL of the Git server to add a user

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input
      --verbose      Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace

SEE ALSO

Auto generated by spf13/cobra on 2-Sep-2020