Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Remove stable/phosphorus jobs
[releng/builder.git]
/
jjb
/
docs
/
docs_version_bump_projects.sh
diff --git
a/jjb/docs/docs_version_bump_projects.sh
b/jjb/docs/docs_version_bump_projects.sh
index 05a2b8b0025df224b56a47c6d12a250a5eff94e5..e67989678d64d72ad6d9da0807a90c6e835c0f31 100644
(file)
--- a/
jjb/docs/docs_version_bump_projects.sh
+++ b/
jjb/docs/docs_version_bump_projects.sh
@@
-12,7
+12,7
@@
update_file_usage () {
echo "Usage: $0 <release_name> <PUBLISH>"
echo ""
update_file_usage () {
echo "Usage: $0 <release_name> <PUBLISH>"
echo ""
- echo " release_name: The release_name e.g
Sulfur, Phosphorus
."
+ echo " release_name: The release_name e.g
Chlorine, Sulfur
."
echo " PUBLISH: Set to true to PUBLISH"
echo ""
}
echo " PUBLISH: Set to true to PUBLISH"
echo ""
}
@@
-32,7
+32,10
@@
done
# shellcheck disable=SC1090
. ~/lf-env.sh
# shellcheck disable=SC1090
. ~/lf-env.sh
-lf-activate-venv "git-review==1.28"
+lf-activate-venv --python python3 "git-review==2.3.1"
+
+# Workaround for git-review failing to copy the commit-msg hook to submodules
+git config core.hooksPath "$(git rev-parse --show-toplevel)/.git/hooks"
git config --global --add gitreview.username "jenkins-$SILO"
cd "$WORKSPACE"/autorelease || exit
git config --global --add gitreview.username "jenkins-$SILO"
cd "$WORKSPACE"/autorelease || exit
@@
-54,6
+57,8
@@
if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
echo "git checkout $GERRIT_BRANCH"
git submodule foreach "git branch"
git submodule foreach "$command"
echo "git checkout $GERRIT_BRANCH"
git submodule foreach "git branch"
git submodule foreach "$command"
+ # Workaround for git-review failing to copy the commit-msg hook to submodules
+ # git submodule foreach 'git config core.hooksPath "$(git rev-parse --show-toplevel)/.git/hooks"'
if [ "$PUBLISH" == "true" ]
then
echo "Update docs header to $release_name in $STREAM"
if [ "$PUBLISH" == "true" ]
then
echo "Update docs header to $release_name in $STREAM"