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
Purge Magnesium jobs from builder
[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 24d092292de6a8d0714e5715a707fac719f256a9..defda6d63112ec4290c05f43bb97e07a5462ce4c 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
Magnesium
."
+ echo " release_name: The release_name e.g
Aluminium, Silicon
."
echo " PUBLISH: Set to true to PUBLISH"
echo ""
}
echo " PUBLISH: Set to true to PUBLISH"
echo ""
}
@@
-28,6
+28,15
@@
while getopts :h: opts; do
;;
esac
done
;;
esac
done
+
+# shellcheck disable=SC1090
+source ~/lf-env.sh
+
+lf-activate-venv "git-review==1.28"
+
+git config --global --add gitreview.username "jenkins-$SILO"
+cd "$WORKSPACE"/autorelease || exit
+GERRIT_PROJECT="releng/autorelease"
if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
# User input
RELEASE_NAME=$RELEASE_NAME
if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
# User input
RELEASE_NAME=$RELEASE_NAME
@@
-38,11
+47,12
@@
if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
################
# Start script #
###############
################
# Start script #
###############
-
git submodule update
#'|| true' for repo like serviceutils where docs/conf.yaml doesn't exist
command='sed -i ''"s/.*version.*/version: '"$release_name"'/"'' docs/conf.yaml || true'
git submodule update
#'|| true' for repo like serviceutils where docs/conf.yaml doesn't exist
command='sed -i ''"s/.*version.*/version: '"$release_name"'/"'' docs/conf.yaml || true'
- git submodule foreach "git checkout $STREAM"
+ git submodule foreach "git checkout $GERRIT_BRANCH"
+ echo "git checkout $GERRIT_BRANCH"
+ git submodule foreach "git branch"
git submodule foreach "$command"
if [ "$PUBLISH" == "true" ]
then
git submodule foreach "$command"
if [ "$PUBLISH" == "true" ]
then
@@
-53,4
+63,4
@@
if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
Should be $release_name on $STREAM.' || true"
git submodule foreach "git review || true"
fi
Should be $release_name on $STREAM.' || true"
git submodule foreach "git review || true"
fi
-fi
\ No newline at end of file
+fi