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-config-repo", Short: "Zuul Config Generate command", Long: `Zuul Config Generate command Expands sfconfig command tool Generates Base Zuul Configurations This will generate the 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 `, Example: ` ./tools/sfconfig bootstrap-tenant-config-repo --connection gerrit-conn --driver gerrit --outpath <Path to Project>/ ./tools/sfconfig bootstrap-tenant-config-repo --connection github-conn --driver github --outpath <Path to Project>/ `, Aliases: []string{"boot"}, Run: func(cmd *cobra.Command, args []string) { connection, _ := cmd.Flags().GetString("connection") driver, _ := cmd.Flags().GetString("driver") outpath, _ := cmd.Flags().GetString("outpath") InitConfigRepo(driver, connection, outpath) fmt.Println("Files generated at ", outpath) }, }
BootstrapTenantConfigRepoCmd command
Functions ¶
func InitConfigRepo ¶ added in v0.0.22
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.