Documentation ¶
Overview ¶
Package bootstraptenantconfigrepo provides facilities for the sfconfig CLI Generates pipelines, jobs and playbooks for zuul
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BootstrapTenantConfigRepoCmd = &cobra.Command{ Use: "bootstrap-tenant", Short: "bootstrap a tenant's config repository", Long: `Initialize a Zuul tenant's config repository with boilerplate code that define standard pipelines: * "check" for pre-commit validation * "gate" for approved commits gating * "post for post-commit actions it also includes a boilerplate job and pre-run playbook. This will generate the following files: <Path to Project>/zuul.d/<CONNECTION NAME>-base-jobs.yaml <Path to Project>/zuul.d/<CONNECTION NAME>-pipeline.yaml <Path to Project>/playbooks/<CONNECTION NAME>-pre.yaml Note: If the directories does not exit they will be created. `, Run: func(cmd *cobra.Command, args []string) { connection, _ := cmd.Flags().GetString("connection") driver, _ := cmd.Flags().GetString("driver") if len(args) != 1 { ctrl.Log.Error(errors.New("incorrect argument"), "the command accepts only one argument as destination path") os.Exit(1) } outpath := args[0] InitConfigRepo(driver, connection, outpath) ctrl.Log.Info("Repository bootstrapped at " + outpath) }, }
BootstrapTenantConfigRepoCmd command
Functions ¶
func InitConfigRepo ¶
func MkBootstrapCmd ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.