Skip to content

Commit fea9b23

Browse files
committed
improve release script to delay calling jenkins until we know that the build went through correctly, also improve the automation by reducing the number of times you need to press any key to continue
1 parent d7fa13a commit fea9b23

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

scripts/release.sh

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ mvn versions:set -DnewVersion="${MVN_VERSION_RELEASE}"
167167
mvn versions:commit
168168

169169

170-
171170
# delete old release branch if it exits
172171
if git show-ref --verify --quiet "refs/heads/${BRANCH}"; then
173172
git branch --delete --force "${BRANCH}" &>/dev/null
@@ -180,20 +179,11 @@ git tag "${MVN_VERSION_RELEASE}"
180179

181180
echo "";
182181
echo "Pushing release branch to github"
183-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
184182

185183
# push release branch and tag
186184
git push -u origin "${BRANCH}"
187185
git push origin "${MVN_VERSION_RELEASE}"
188186

189-
echo "";
190-
echo "You need to tell Jenkins to start the release deployment processes, for SDK and maven artifacts"
191-
echo "- SDK deployment: https://ci.eclipse.org/rdf4j/job/rdf4j-deploy-release-sdk/ "
192-
echo "- Maven deployment: https://ci.eclipse.org/rdf4j/job/rdf4j-deploy-release-ossrh/ "
193-
echo "(if you are on linux or windows, remember to use CTRL+SHIFT+C to copy)."
194-
echo "Log in, then choose 'Build with Parameters' and type in ${MVN_VERSION_RELEASE}"
195-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
196-
197187
# Cleanup
198188
mvn clean -Dmaven.clean.failOnError=false
199189
mvn clean -Dmaven.clean.failOnError=false
@@ -219,15 +209,13 @@ git push
219209

220210
echo "";
221211
echo "About to create PR"
222-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
223212
echo "";
224213

225214
echo "Creating pull request to merge release branch back into main"
226-
gh pr create --title "next development iteration: ${MVN_NEXT_SNAPSHOT_VERSION}" --body "Merge using merge commit rather than rebase"
215+
gh pr create -B main --title "next development iteration: ${MVN_NEXT_SNAPSHOT_VERSION}" --body "Merge using merge commit rather than rebase"
227216

228217
echo "";
229218
echo "Preparing a merge-branch to merge into develop"
230-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
231219

232220

233221

@@ -255,7 +243,6 @@ mvn clean -Dmaven.clean.failOnError=false
255243
mvn clean -Dmaven.clean.failOnError=false
256244

257245
echo "Build javadocs"
258-
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
259246

260247
git checkout "${MVN_VERSION_RELEASE}"
261248

@@ -289,7 +276,13 @@ cd scripts
289276
echo ""
290277
echo "DONE!"
291278

292-
279+
echo "";
280+
echo "You need to tell Jenkins to start the release deployment processes, for SDK and maven artifacts"
281+
echo "- SDK deployment: https://ci.eclipse.org/rdf4j/job/rdf4j-deploy-release-sdk/ "
282+
echo "- Maven deployment: https://ci.eclipse.org/rdf4j/job/rdf4j-deploy-release-ossrh/ "
283+
echo "(if you are on linux or windows, remember to use CTRL+SHIFT+C to copy)."
284+
echo "Log in, then choose 'Build with Parameters' and type in ${MVN_VERSION_RELEASE}"
285+
read -n 1 -srp "Press any key to continue (ctrl+c to cancel)"; printf "\n\n";
293286

294287
echo ""
295288
echo "You will now want to inform the community about the new release!"

0 commit comments

Comments
 (0)