[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible fdroid: prevent password prompts in github/gitlab/bitbucket
Holger Levsen
holger at layer-acht.org
Tue Mar 7 12:04:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 8f26c5f1a29efbcf854f86d592b025b2748a064a
Author: Hans-Christoph Steiner <hans at eds.org>
Date: Wed Feb 15 14:22:09 2017 +0100
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 at layer-acht.org>
---
bin/reproducible_setup_fdroid_build_environment.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bin/reproducible_setup_fdroid_build_environment.sh b/bin/reproducible_setup_fdroid_build_environment.sh
index 68c70cc..d03f7b5 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list