[JIRA] (JENKINS-59598) Git plugin "Merge before build" option with concurrent build cause git lock issue

5 views
Skip to first unread message

olamy@apache.org (JIRA)

unread,
Sep 30, 2019, 9:32:03 PM9/30/19
to jenkinsc...@googlegroups.com
Olivier Lamy created an issue
 
Jenkins / Bug JENKINS-59598
Git plugin "Merge before build" option with concurrent build cause git lock issue
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 2019-10-01 01:31
Priority: Minor Minor
Reporter: Olivier Lamy

The git extension h.p.g.e.PreBuildMerge Merge before build is using master workspace to try merging git branches.

But if executed concurrently this can cause concurrent access to git lock file stderr: fatal: Unable to create '/var/jenkins_home/workspace/pipeline-foo@script/.git/index.lock': File exists.

Quick look at it maybe possible options/ideas:

  • mark the extension requiresWorkspaceForPolling
  • override change method getWorkingDirectory to return a new directory if context.isConcurrentBuild()
  • override decorateCheckoutCommand to use different directory
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 30, 2019, 10:46:02 PM9/30/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages