代码拉取完成,页面将自动刷新
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "usage: <version> <repositoryURL>"
exit 1
fi
version=$1
repository=$2
# replace all development versions with release version
replacement="s/0.0-DEVELOPMENT/$version/g"
find . -name "pom.xml" -exec sed -i -e "$replacement" {} \;
find . -name "build.gradle" -exec sed -i -e "$replacement" {} \;
# commit tag of version name
#git add pom.xml
#git add flapi-build-plugin/pom.xml
#git add flapi-build-project/pom.xml
#git add flapi-build-test-consumer/pom.xml
#git add flapi-build-test-producer/pom.xml
#git add flapi-descriptor/pom.xml
#git add flapi-gradle-plugin/pom.xml
#git add flapi-parent/pom.xml
#git add flapi-plugin/pom.xml
#git add flapi-runtime/pom.xml
#git commit -m"releasing version $version"
#git tag $version
# build and release the project
cd flapi-parent
mvn -DaltDeploymentRepository=micro::default::"$2" clean install deploy
cd ..
# replace all release versions with development version
#replacement="s/$version/0.0-DEVELOPMENT/g"
#find . -name "pom.xml" -exec sed -i -e "$replacement" {} \;
# reset to the last working commit
#git reset --hard HEAD~1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。