From ba3e7f8f0d6c103b5d5f87c9c5c4c9ca80d1bc66 Mon Sep 17 00:00:00 2001 From: Anushka Bhandari Date: Fri, 6 Dec 2019 12:46:38 +0530 Subject: [PATCH] Add installation command for git-review and configuration of git This change adds pip-install statements for git-review and configures the git username as well. Change-Id: Ia056f3f11b83b527a650979989000f4feda10879 Signed-off-by: Anushka Bhandari --- jjb/docs/docs_version_bump.sh | 2 ++ jjb/docs/docs_version_bump_projects.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jjb/docs/docs_version_bump.sh b/jjb/docs/docs_version_bump.sh index 9ed1bfe52..45a0f59e6 100644 --- a/jjb/docs/docs_version_bump.sh +++ b/jjb/docs/docs_version_bump.sh @@ -37,6 +37,8 @@ if [ "$GERRIT_PROJECT" == "docs" ]; then stable_release_str=stable-$release_name echo "Start Version Updating in docs project" echo "RELEASE_NAME : $Next_release" + pip install --user --quiet --upgrade git-review + git config --global --add gitreview.username "jenkins-$SILO" if [ "$GERRIT_BRANCH" == "master" ] then # #################################### diff --git a/jjb/docs/docs_version_bump_projects.sh b/jjb/docs/docs_version_bump_projects.sh index 24d092292..069304fb6 100644 --- a/jjb/docs/docs_version_bump_projects.sh +++ b/jjb/docs/docs_version_bump_projects.sh @@ -38,7 +38,8 @@ if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then ################ # Start script # ############### - + pip install --user --quiet --upgrade git-review + git config --global --add gitreview.username "jenkins-$SILO" 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' -- 2.36.6