X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Fdocs%2Fdocs_version_bump_projects.sh;h=defda6d63112ec4290c05f43bb97e07a5462ce4c;hb=aaa15bfead052d8c3b2db95ff19b2d3d602c0d2d;hp=24d092292de6a8d0714e5715a707fac719f256a9;hpb=cf00c7646c042183f411384a585913b91993998f;p=releng%2Fbuilder.git diff --git a/jjb/docs/docs_version_bump_projects.sh b/jjb/docs/docs_version_bump_projects.sh index 24d092292..defda6d63 100644 --- 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 " 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 "" } @@ -28,6 +28,15 @@ while getopts :h: opts; do ;; 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 @@ -38,11 +47,12 @@ if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then ################ # 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 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 @@ -53,4 +63,4 @@ if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then Should be $release_name on $STREAM.' || true" git submodule foreach "git review || true" fi -fi \ No newline at end of file +fi