From 7df0188c79c81a1ba25021699cb0aef95a5c298a Mon Sep 17 00:00:00 2001 From: mtojek Date: Mon, 11 Jul 2022 15:24:11 +0200 Subject: [PATCH] Deprecate publish and promote --- cmd/promote.go | 1 + cmd/publish.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/promote.go b/cmd/promote.go index a8d35cc8e6..d2e23806fd 100644 --- a/cmd/promote.go +++ b/cmd/promote.go @@ -50,6 +50,7 @@ func setupPromoteCommand() *cobraext.Command { func promoteCommandAction(cmd *cobra.Command, _ []string) error { cmd.Println("Promote packages") + cmd.Println("DEPRECATED: Packages stored in the Package Storage v2 won't require to be promoted. This command will be removed soon. README: https://github.com/elastic/elastic-package/blob/main/docs/howto/use_package_storage_v2.md") // Setup GitHub err := github.EnsureAuthConfigured() diff --git a/cmd/publish.go b/cmd/publish.go index c27556a160..535ac4b4a2 100644 --- a/cmd/publish.go +++ b/cmd/publish.go @@ -37,6 +37,7 @@ func setupPublishCommand() *cobraext.Command { func publishCommandAction(cmd *cobra.Command, args []string) error { cmd.Println("Publish the package") + cmd.Println("DEPRECATED: Package candidates to the Package Storage v2 will be published using Jenkins jobs. This command will be removed soon. README: https://github.com/elastic/elastic-package/blob/main/docs/howto/use_package_storage_v2.md") fork, err := cmd.Flags().GetBool(cobraext.ForkFlagName) if err != nil {