commit | 164789be5fdfe85f169107b67806612f6bd9e7cf | [log] [tgz] |
---|---|---|
author | Martijn Visser <2989614+MartijnVisser@users.noreply.github.com> | Tue Jan 16 10:59:32 2024 +0100 |
committer | Martijn Visser <2989614+MartijnVisser@users.noreply.github.com> | Tue Jan 16 10:59:32 2024 +0100 |
tree | 20472f908ca828126a9417c01d2a279187f0d79e | |
parent | d314babafbd98abdd0b129eee5626b12869825f4 [diff] | |
parent | b9597c7460e5e00ae2d7bb66583668389f19691c [diff] |
Merge remote-tracking branch 'origin/release_utils' into release_utils
This is a collection of release utils for Apache Flink connectors.
The scripts assume that they are integrated into a connector repo as a submodule into the connector repo under tools/releasing/shared
.
Some scripts rely on environment variables to be set.
These are checked at the start of each script.
Any instance of ${some_variable}
in this document refers to an environment variable that is used by the respective script.
Runs some pre-release checks for the current environment, for example that all required programs are available.
This should be run once at the start of the release process.
Creates (and pushes!) a new snapshot branch for the current commit.
The branch name is automatically determined from the version in the pom.
This script should be called when work on a new major/minor version of the connector has started.
Updates the version in the poms of the current branch to ${NEW_VERSION}
.
Creates a source release from the current branch and pushes it via svn
to dist.apache.org.
The project name is automatically determined from the repository name, but can be overridden via ${PROJECT}
. The version is automatically determined from the version in the pom.
The created svn
directory will contain a -rc${RC_NUM}
suffix.
Creates the jars from the current branch and deploys them to repository.apache.org.
The version will be suffixed with the Flink minor version, extracted from${FLINK_VERSION}
, to indicate the supported Flink version.
If a particular version of a connector supports multiple Flink versions then this script should be called multiple times.
Copies the source release from the SVN release directory to the SVN release directory on dist.apache.org.
For safety purposes this script does not automatically determine the project and version from the current directory/branch/tag.
PROJECT=flink-connector-elasticsearch VERSION=3.0.0 RC_NUM=2 ./release_source_release.sh
Creates a release tag for the current branch and pushes it to GitHub. The tag will be suffixed with -rc${RC_NUM}
, if ${RC_NUM}
was set.
This script should only be used after the -SNAPSHOT
version suffix was removd via update_branch_version.sh
.
Sets the japicmp reference version in the pom of the current branch to ${NEW_VERSION}
, enables compatibility checks for @PublicEvolving
when used on snapshot branches an clears the list of exclusions.
This should be called after a release on the associated snapshot branch. If it was a minor release it should additionally be called on the main
branch.
release_snapshot_branch.sh
check_environment.sh
update_branch_version.sh
stage_source_release.sh
stage_jars.sh
(once for each supported Flink version)release_git_tag.sh
(with RC_NUM
)release_source_release.sh
release_git_tag.sh
(without RC_NUM
)update_japicmp_configuration.sh
(on snapshot branch, and maybe main
)Prefix | Meaning |
---|---|
check | Verifies conditions without making any changes. |
update | Applies modifications locally to the current branch. |
stage | Publishes an artifact to an intermediate location for voting purposes. |
release | Publishes an artifact to a user-facing location. |