Skip to content

Commit

Permalink
[doc](release) fix connector release doc (apache#30362)
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba authored Jan 25, 2024
1 parent cd6a6c0 commit d5df146
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
19 changes: 14 additions & 5 deletions docs/en/community/release-and-verify/release-doris-connectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,21 @@ First, see the [release preparation](./release-prepare.md) documentation to prep

Let's take the release of Spark Connector 1.2.0 as an example.

### 1. Prepare branch
### 1. Prepare branch and tag

Create a branch in the code base: release-1.2.0, and checkout to this branch.

Modify the version revision in the pom to the version number to be released, which is 1.2.0. And submit this modification, for example:
```
git commit -a -m "Commit for release 1.2.0"
```

Create tag and push
```
git tag 1.2.0
git push origin 1.2.0
```

### 2. Release to Maven staging

Because Spark Connector releases different releases for different Spark versions (such as 2.3, 3.1, 3.2), we need to process each version separately at compile time.
Expand All @@ -57,8 +68,7 @@ Let's take Spark version 2.3 and scala version 2.11 as examples:
mvn clean install \
-Dspark.version=2.3.0 \
-Dscala.version=2.11 \
-Dspark.major.version=2.3 \
-Drevision=1.2.0
-Dspark.major.version=2.3
```
>Note: For related parameters, please refer to the compilation command in the build.sh script, and revision is the version number to be released this time.
Expand All @@ -67,8 +77,7 @@ mvn deploy \
-Papache-release \
-Dspark.version=2.3.0 \
-Dscala.version=2.11 \
-Dspark.major.version=2.3 \
-Drevision=1.2.0
-Dspark.major.version=2.3
```

After successful execution, you can find the newly released version in [https://repository.apache.org/#stagingRepositories](https://repository.apache.org/#stagingRepositories):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,21 @@ Doris Connectors 目前包含:

我们以发布 Spark Connector 1.2.0 为例。

### 1. 准备分支
### 1. 准备分支和tag

在代码库中创建分支:release-1.2.0,并 checkout 到该分支。

修改pom中的版本revision为要发布的版本号,即1.2.0。并且提交本次修改,例如:
```
git commit -a -m "Commit for release 1.2.0"
```

创建tag并推送
```
git tag 1.2.0
git push origin 1.2.0
```

### 2. 发布到 Maven staging

因为 Spark Connector 针对不同 Spark 版本(如 2.3, 3.1, 3.2)发布不同的 Release, 因此我们需要针对每一个版本单独在编译时进行处理。
Expand All @@ -57,8 +68,7 @@ Doris Connectors 目前包含:
mvn clean install \
-Dspark.version=2.3.0 \
-Dscala.version=2.11 \
-Dspark.major.version=2.3 \
-Drevision=1.2.0
-Dspark.major.version=2.3
```
>注意:相关参数可以参考build.sh脚本中的编译命令,revision为本次要发布的版本号。
Expand All @@ -67,8 +77,7 @@ mvn deploy \
-Papache-release \
-Dspark.version=2.3.0 \
-Dscala.version=2.11 \
-Dspark.major.version=2.3 \
-Drevision=1.2.0
-Dspark.major.version=2.3
```

执行成功后,在 [https://repository.apache.org/#stagingRepositories](https://repository.apache.org/#stagingRepositories) 里面可以找到刚刚发布的版本:
Expand Down

0 comments on commit d5df146

Please sign in to comment.