remove already existing .gitconfig 53/9153/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 20 Apr 2017 08:55:59 +0000 (10:55 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 20 Apr 2017 08:55:59 +0000 (10:55 +0200)
Try to fix:
+ git config --global user.email jenkins-dontreply@build.automotivelinux.org
error: could not lock config file /home/jenkins/.gitconfig: File exists
Build step 'Execute shell' marked build as failure

Change-Id: Ifc31056d872564e1a700a9ab9e572a6d07549ced
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-header.sh

index f3287e9..e2f527e 100644 (file)
@@ -140,6 +140,8 @@ set | grep ^MACHINE || true
 
 set -x
 
+rm -rf ~/.gitconfig || true
+
 git config --global user.email "jenkins-dontreply@build.automotivelinux.org"
 sleep 1
 git config --global user.name "jenkins-dontreply@build.automotivelinux.org"