Skip to content

Commit

Permalink
Remove deprecated promote and publish commands (#2248)
Browse files Browse the repository at this point in the history
Remove promote and publish commands and all its related flags.
These commands were already deprecated.
  • Loading branch information
mrodm authored Dec 2, 2024
1 parent 0d683b7 commit 907ab44
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 120 deletions.
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Usually, this process would require the following manual steps:
go mod tidy
```
4. Push these changes into a branch and create a Pull Request
- Creating this PR would automatically trigger a new Jenkins pipeline.
- Creating this PR would automatically trigger a new build of the corresponding Buildkite pipeline.


### Testing with Elastic serverless
Expand Down Expand Up @@ -412,24 +412,6 @@ _Context: global_

Sets the profile to use when no other is specified.

### `elastic-package promote`

_Context: global_

[DEPRECATED] Use this command to move packages between the snapshot, staging, and production stages of the package registry.

This command is intended primarily for use by administrators.

It allows for selecting packages for promotion and opens new pull requests to review changes. Please be aware that the tool checks out an in-memory Git repository and switches over branches (snapshot, staging and production), so it may take longer to promote a larger number of packages.

### `elastic-package publish`

_Context: package_

[DEPRECATED] Use this command to publish a new package revision.

The command checks if the package hasn't been already published (whether it's present in snapshot/staging/production branch or open as pull request). If the package revision hasn't been published, it will open a new pull request.

### `elastic-package report`

_Context: package_
Expand Down Expand Up @@ -716,7 +698,7 @@ There are available some environment variables that could be used to change some
## Release process

This project uses [GoReleaser](https://goreleaser.com/) to release a new version of the application (semver). Release publishing
is automatically managed by the Jenkins CI ([Jenkinsfile](https://github.com/elastic/elastic-package/blob/main/.ci/Jenkinsfile))
is automatically managed by the Buildkite CI ([Pipeline](https://github.com/elastic/elastic-package/blob/main/.buildkite/pipeline.yml))
and it's triggered by Git tags. Release artifacts are available in the [Releases](https://github.com/elastic/elastic-package/releases) section.

### Steps to create a new release
Expand Down
39 changes: 0 additions & 39 deletions cmd/promote.go

This file was deleted.

40 changes: 0 additions & 40 deletions cmd/publish.go

This file was deleted.

2 changes: 0 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ var commands = []*cobraext.Command{
setupFormatCommand(),
setupInstallCommand(),
setupLintCommand(),
setupPromoteCommand(),
setupProfilesCommand(),
setupPublishCommand(),
setupReportsCommand(),
setupServiceCommand(),
setupStackCommand(),
Expand Down
17 changes: 0 additions & 17 deletions internal/cobraext/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,21 +221,4 @@ const (
ZipPackageFilePathFlagName = "zip"
ZipPackageFilePathFlagShorthand = "z"
ZipPackageFilePathFlagDescription = "path to the zip package file (*.zip)"

// To be removed promote commands flags
DirectionFlagName = "direction"
DirectionFlagDescription = "promotion direction"

NewestOnlyFlagName = "newest-only"
NewestOnlyFlagDescription = "promote newest packages and remove old ones"

PromotedPackagesFlagName = "packages"
PromotedPackagesFlagDescription = "packages to be promoted (comma-separated values: apache-1.2.3,nginx-5.6.7)"

// To be removed publish commands flags
ForkFlagName = "fork"
ForkFlagDescription = "use fork mode (set to \"false\" if user can't fork the storage repository)"

SkipPullRequestFlagName = "skip-pull-request"
SkipPullRequestFlagDescription = "skip opening a new pull request"
)
4 changes: 2 additions & 2 deletions tools/readme/readme.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Usually, this process would require the following manual steps:
go mod tidy
```
4. Push these changes into a branch and create a Pull Request
- Creating this PR would automatically trigger a new Jenkins pipeline.
- Creating this PR would automatically trigger a new build of the corresponding Buildkite pipeline.


### Testing with Elastic serverless
Expand Down Expand Up @@ -258,7 +258,7 @@ There are available some environment variables that could be used to change some
## Release process

This project uses [GoReleaser](https://goreleaser.com/) to release a new version of the application (semver). Release publishing
is automatically managed by the Jenkins CI ([Jenkinsfile](https://github.com/elastic/elastic-package/blob/main/.ci/Jenkinsfile))
is automatically managed by the Buildkite CI ([Pipeline](https://github.com/elastic/elastic-package/blob/main/.buildkite/pipeline.yml))
and it's triggered by Git tags. Release artifacts are available in the [Releases](https://github.com/elastic/elastic-package/releases) section.

### Steps to create a new release
Expand Down

0 comments on commit 907ab44

Please sign in to comment.