aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/create-user-build-script
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2013-01-23 16:20:56 +0530
committerAmit Pundir <amit.pundir@linaro.org>2013-01-23 16:20:56 +0530
commite6a16691177016e2d2182a0234dabea72f9565b9 (patch)
treeb690ba43c5dfdfd5da6c6f87c714f0a0d1d8b063 /build-scripts/create-user-build-script
parent1609cbf723fcafcdfcb68d3492b43b70f41dabe3 (diff)
linaro_android_build_cmds: prompt for login details when user try to download private manifests
Diffstat (limited to 'build-scripts/create-user-build-script')
-rwxr-xr-xbuild-scripts/create-user-build-script19
1 files changed, 18 insertions, 1 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script
index 012da1b..b5cd0be 100755
--- a/build-scripts/create-user-build-script
+++ b/build-scripts/create-user-build-script
@@ -118,7 +118,24 @@ EOF
jenkins_configs_method()
{
cat <<EOF
-export MANIFEST_REPO=${MANIFEST_REPO}
+# check for linaro private manifests
+PM=\`echo ${MANIFEST_REPO} | grep -i "linaro-private" | wc -l\`
+if [ \${PM} -gt 0 ] ; then
+ if [ "\${ID}" == "default-bot" ] ; then
+ echo "You must specify valid login/access-id to clone from linaro-private manifest repositories."
+ echo "Press "y" to continue (which may result in incomplete build or failure), OR"
+ echo "Press "n" to enter login details, OR"
+ echo "Press "h" for help."
+ read NEXT
+ if [ \${NEXT} == n ] ; then
+ echo "Enter login/access-id:"
+ read ID
+ elif [ \${NEXT} == h ] ; then
+ usage
+ fi
+ fi
+fi
+export MANIFEST_REPO=`echo ${MANIFEST_REPO} | sed 's/\/\/.*-bot@/\/\/'"\${ID}"'@/'`
export MANIFEST_BRANCH=${MANIFEST_BRANCH}
export MANIFEST_FILENAME=${MANIFEST_FILENAME}
export TARGET_PRODUCT=${TARGET_PRODUCT}