summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Christoph Steiner <hans@eds.org>2017-02-15 14:22:09 +0100
committerHolger Levsen <holger@layer-acht.org>2017-03-07 13:04:10 +0100
commit8f26c5f1a29efbcf854f86d592b025b2748a064a (patch)
tree6b339a3a5c2a5348b78c9e4757fc8c83c7bf4262
parent0ffa0c22835f0dd3602bdc687814b8c84e788188 (diff)
downloadjenkins.debian.net-8f26c5f1a29efbcf854f86d592b025b2748a064a.tar.xz
reproducible fdroid: prevent password prompts in github/gitlab/bitbucket
After a long discussion on #reproducible-builds on 2017-02-15, mapreri and h01ger said to keep this config in this build job. Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_setup_fdroid_build_environment.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/reproducible_setup_fdroid_build_environment.sh b/bin/reproducible_setup_fdroid_build_environment.sh
index 68c70cce..d03f7b5c 100755
--- a/bin/reproducible_setup_fdroid_build_environment.sh
+++ b/bin/reproducible_setup_fdroid_build_environment.sh
@@ -58,6 +58,11 @@ export ANDROID_HOME=/usr/lib/android-sdk
# Project's jenkins box
./jenkins-build-makebuildserver
+# ignore username/password prompt for non-existant repos
+git config --global url."https://fakeusername:fakepassword@github.com".insteadOf https://github.com
+git config --global url."https://fakeusername:fakepassword@gitlab.com".insteadOf https://gitlab.com
+git config --global url."https://fakeusername:fakepassword@bitbucket.org".insteadOf https://bitbucket.org
+
# now build the whole archive
cd $WORKSPACE
git clone https://gitlab.com/fdroid/fdroiddata.git