|
|
|
@ -163,15 +163,15 @@ A_USERNAME=<YOUR-APACHE-USERNAME>
|
|
|
|
|
git clone -b "${VERSION}"-prepare https://github.com/apache/dolphinscheduler.git |
|
|
|
|
cd ~/dolphinscheduler/ |
|
|
|
|
git pull |
|
|
|
|
git checkout -b ${RELEASE.VERSION}-release |
|
|
|
|
git push origin ${RELEASE.VERSION}-release |
|
|
|
|
git checkout -b "${VERSION}"-release |
|
|
|
|
git push origin "${VERSION}"-release |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### 发布预校验 |
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
|
# 运行发版校验 |
|
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}" |
|
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DdryRun=true -Dusername="${GH_USERNAME}" |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
* `-Prelease`: 选择release的profile,这个profile会打包所有源码、jar文件以及可执行二进制包。 |
|
|
|
@ -189,7 +189,7 @@ mvn release:clean
|
|
|
|
|
然后准备执行发布。 |
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}" |
|
|
|
|
mvn release:prepare -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -DpushChanges=false -Dusername="${GH_USERNAME}" |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
和上一步演练的命令基本相同,去掉了 `-DdryRun=true` 参数。 |
|
|
|
@ -218,7 +218,7 @@ git push origin --tags
|
|
|
|
|
### 部署发布 |
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
|
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}" |
|
|
|
|
mvn release:perform -Prelease -Darguments="-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dspotless.check.skip=true" -DautoVersionSubmodules=true -Dusername="${GH_USERNAME}" |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
执行完该命令后,待发布版本会自动上传到Apache的临时筹备仓库(staging repository)。你可以通过访问 [apache staging repositories](https://repository.apache.org/#stagingRepositories) |
|
|
|
|