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
Bump build-timeout for lftools to 30 minutes
[releng/builder.git]
/
jjb
/
autorelease
/
branch-cut.sh
diff --git
a/jjb/autorelease/branch-cut.sh
b/jjb/autorelease/branch-cut.sh
index fd0055f6a475823f116a5743bb3d5901bda21b34..342786b8b6a78b24882412a6fbf2952015fb8a25 100644
(file)
--- a/
jjb/autorelease/branch-cut.sh
+++ b/
jjb/autorelease/branch-cut.sh
@@
-1,4
+1,4
@@
-#!/bin/bash
+#!/bin/bash
-l
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
@@
-28,13
+28,17
@@
LOG_FILE="$WORKSPACE/archives/branch-cut.log"
set -eu -o pipefail
set -eu -o pipefail
+pip install --user --quiet --upgrade git-review
+
# Validate inputs
if [ -z "$RELEASE" ]; then
echo "ERROR: RELEASE variable must be set to a release name. Eg Carbon"
exit 1
fi
# Validate inputs
if [ -z "$RELEASE" ]; then
echo "ERROR: RELEASE variable must be set to a release name. Eg Carbon"
exit 1
fi
-git config gitreview.username jenkins-releng
+# Setup Gerrit remote to ensure Change-Id gets set on commit.
+git config --global --add gitreview.username "jenkins-$SILO"
+git remote -v
git submodule foreach git review -s
git review -s
git submodule foreach git review -s
git review -s
@@
-63,7
+67,7
@@
if [ "$DRY_RUN" = false ]
then
echo "Pushing stable/${RELEASE,,} branches to Gerrit"
git submodule foreach git push gerrit "stable/${RELEASE,,}"
then
echo "Pushing stable/${RELEASE,,} branches to Gerrit"
git submodule foreach git push gerrit "stable/${RELEASE,,}"
- git push gerrit "stable/$
RELEASE
"
+ git push gerrit "stable/$
{RELEASE,,}
"
fi
# --- End create new maintenance branch
fi
# --- End create new maintenance branch