jenkins-test: ensure gpg is starting from a clean and proper place

There have been frequent failures on import, some bugs suggest that it
might be because these dirs are missing.  They would get wiped by a
`git clean -fdx`.
This commit is contained in:
Hans-Christoph Steiner 2018-01-11 20:55:36 +01:00
parent 5ad661ef7b
commit ee89468818
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ rm -f config.py keystore.jks
../fdroid update
export GNUPGHOME=$WORKSPACE/tests/gnupghome
if [ ! -e $GNUPGHOME/private-keys-v1.d ]; then
mkdir -p $GNUPGHOME/private-keys-v1.d
chmod 0700 $GNUPGHOME/private-keys-v1.d
fi
gpg --import $GNUPGHOME/secring.gpg
echo "build_server_always = True" >> config.py