Skip to content

Commit

Permalink
Update the updater for 2024-03 to 2024-06 transition
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Mar 11, 2024
1 parent 1bc6123 commit 2311080
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nextReleaseUtils/update_build_configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script_name="$(basename "${0}")"

xmlstarlet_bin="xmlstarlet"

path_to_simrel_build_repo="../../org.eclipse.simrel.build"
path_to_simrel_build_repo="../../simrel.build"

jenkinsfile="Jenkinsfile"
jenkinsfile_reporeports="Jenkinsfile-reporeports"
Expand All @@ -39,17 +39,17 @@ eclipse_repo_base_url="https://download.eclipse.org/eclipse/updates"

usage() {
printf "Usage: %s release_name reference_repo eclipse_repo_url\n" "${script_name}"
printf "\t%-16s next release name (e.g. 2020-09).\n" "release_name"
printf "\t%-16s reference repo (e.g. 'releases/2020-06/202006171000').\n" "reference_repo"
printf "\t%-16s Eclipse repo URL (e.g. '4.16/R-4.16-202006040540/'), check https://download.eclipse.org/eclipse/updates.\n" "eclipse_repo_url"
printf "\t%-16s next release name (e.g. 2024-06).\n" "release_name"
printf "\t%-16s reference repo (e.g. 'releases/2024-03/202403131000').\n" "reference_repo"
printf "\t%-16s Eclipse repo URL (e.g. '4.31/R-4.31-202402290520'), check https://download.eclipse.org/eclipse/updates.\n" "eclipse_repo_url"
}

## Verify inputs

#TODO: check number of arguments

if [ "${release_name}" == "" ]; then
printf "ERROR: a release name must be given (e.g. 2020-09).\n"
printf "ERROR: a release name must be given (e.g. 2024-03).\n"
usage
exit 1
fi
Expand All @@ -61,7 +61,7 @@ if [ "${reference_repo}" == "" ]; then
fi

if [ "${eclipse_repo_url}" == "" ]; then
printf "ERROR: an Eclipse repo URL must be given (e.g. '4.16/R-4.16-202006040540/').\n"
printf "ERROR: an Eclipse repo URL must be given (e.g. '4.31/R-4.31-202402290520').\n"
usage
exit 1
fi
Expand All @@ -86,4 +86,4 @@ git add "${jenkinsfile}" "${jenkinsfile_reporeports}" "${jenkinsfile_oomph_repor
popd

echo "Do not forget to commit the changes!"
echo "Commit message example: 'Update build configuration for next release cycle (2021-12)'"
echo "Commit message example: 'Update build configuration for next release cycle (2024-06)'"

0 comments on commit 2311080

Please sign in to comment.