jx edit storage

list of jx commands

jx edit storage

Configures the storage location for stashing files or storing build logs for your team

Synopsis

Configures the storage location used by your team to stashing files or storing build logs.

  If you don't specify any specific storage for a classifier it will try the classifier 'default'. If there is still no configuration then it will default to the git repository for a project.'

Currently Jenkins X supports storing files into a branch of a git repository or in cloud blob storage like S3, GCS, Azure blobs etc.

When using Cloud Storage we use URLs like ‘s3://nameOfBucket’ on AWS, ‘gs://anotherBucket’ on GCP or on Azure ‘azblob://thatBucket’

See Also:

jx edit storage [flags]

Examples

  # Be prompted what classification to edit
  jx edit storage
  
  # Configure the where to store logs prompting the user to ask for more data
  jx edit storage -c logs
  
  
  # Configure the git URL of where to store logs (defaults to gh-pages branch)
  jx edit storage -c logs --git-url https://github.com/myorg/mylogs.git'
  
  # Configure the git URL and branch of where to store logs
  jx edit storage -c logs --git-url https://github.com/myorg/mylogs.git' --git-branch cheese
  
  # Configure the git URL of where all storage goes to by default unless a specific classifier has a config
  jx edit storage -c default --git-url https://github.com/myorg/mylogs.git'
  
  
  # Configure the tests to be stored in cloud storage (using S3 / GCS / Azure Blobs etc)
  jx edit storage -c tests --bucket-url s3://myExistingBucketName
  
  # Creates a new GCS bucket and configures the logs to be stored in it
  jx edit storage -c logs --bucket myBucketName

Options

      --bucket string           Specify the name of the bucket to use
      --bucket-kind string      The kind of bucket to use like 'gs, s3, azure' etc
      --bucket-url string       Specify the cloud storage bucket URL to send each file to. e.g. use 's3://nameOfBucket' on AWS, gs://anotherBucket' on GCP or on Azure 'azblob://thatBucket'
  -c, --classifier string       A name which classifies this type of file. Example values: coverage, tests, logs, reports
      --git-branch string       The branch to use to store files in the git repository (default "gh-pages")
      --git-url string          Specify the Git URL to of the repository to use for storage
      --gke-project-id string   Google Project ID to use for a new bucket
      --gke-zone string         The GKE zone (e.g. us-central1-a) where the new bucket will be created
  -h, --help                    help for storage

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input (default true)
      --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 30-Jun-2020

Last modified July 13, 2020: release 0.0.1819 (0981d42)