I have a Jenkins server which runs build verification by Gerrit Trigger plugin.
This worked fine for months. But after last time I restart my Jenkins, strange behavior happens:
Each Gerrit uploaded patchset will trigger two build. One is correct, but the other use the build ID. Like:
In Jenkins WebUI I only see build 291 running but I got error like
Fatal: Unable to create '/home/jenkins/jenkins_slave/workspace/linux_verify/kernel/linux/linux-3.10.0/.git/index.lock': File exists.
This means I have two git processes accessing the same repository.
I try to restart Jenkins server and slave node, also try to reconnect GerritTrigger servers.
None of this work.
Anyone have idea?