代码拉取完成,页面将自动刷新
同步操作将从 openGauss/openGauss-connector-jdbc 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash -x
# This script should be run from pgjdbc clone, and it deploys pgjdbc, pgjdbc-jre7, and pgjdbc-jre6 to Staging repository
# Later the staged repositories can be inspected or promoted
# Note: if script fails in the middle, manual git reset, and removal of the tag might be required
# Note: the script should be run like ./release_stage.sh 42.1.1 42.1.2
RELEASE_VERSION=$1
NEXT_VERSION=$2
if [ -z "$RELEASE_VERSION" ]; then
echo "Release version is not set"
exit 1
fi
if [ -z "$NEXT_VERSION" ]; then
echo "Next version is not set"
exit 1
fi
function clone_prev {
JRE=$1
if [ -d pgjdbc-jre$JRE ]; then
echo pgjdbc-jre$JRE already exists
return
fi
echo Cloning pgjdbc-jre$JRE
echo git clone https://github.com/pgjdbc/pgjdbc-jre$JRE
echo cd pgjdbc-jre$JRE
echo git submodule update --init
}
(clone_prev 6)
(clone_prev 7)
function mvn_release {
SUFFIX=$1
if [ -f "released_$SUFFIX" ]
then
echo "$SUFFIX has already been released"
return
fi
echo
echo
echo Releasing $SUFFIX
echo =================
echo
git reset --hard
mvn release:clean release:prepare -DreleaseVersion=$RELEASE_VERSION$SUFFIX -DdevelopmentVersion=$NEXT_VERSION$SUFFIX-SNAPSHOT -Dtag=REL$RELEASE_VERSION$SUFFIX &&\
mvn release:perform &&\
echo https://oss.sonatype.org/content/repositories/staging/org/postgresql/postgresql/$RELEASE_VERSION$SUFFIX/ > released_$SUFFIX
}
function release_prev {
JRE=$1
cd pgjdbc-$JRE/pgjdbc &&\
git fetch &&\
git reset --hard REL$RELEASE_VERSION &&\
cd .. &&\
git checkout master &&\
git reset --hard origin/master &&\
git add pgjdbc &&\
git commit -m "Update pgjdbc to $RELEASE_VERSION" &&\
mvn_release .$JRE
}
mvn_release &&\
(release_prev jre7) &&\
(release_prev jre6)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。