[JIRA] [git-plugin] (JENKINS-32143) Set git merge timeout

8 views
Skip to first unread message

ryazansev.dmitry@yandex.ru (JIRA)

unread,
Dec 18, 2015, 5:20:01 AM12/18/15
to jenkinsc...@googlegroups.com
Dmitry Ryazancev created an issue
 
Jenkins / New Feature JENKINS-32143
Set git merge timeout
Issue Type: New Feature New Feature
Assignee: Mark Waite
Components: git-plugin
Created: 18/Dec/15 10:19 AM
Environment: windows
Priority: Trivial Trivial
Reporter: Dmitry Ryazancev

When using Merge Before Build, sometimes throws error:
git merge --ff df24f37fedf6048881cc0683a782c975b0bd8db7 # timeout=10
ERROR: Timeout after 10 minutes
> git config core.sparsecheckout # timeout=10
> git checkout -f df24f37fedf6048881cc0683a782c975b0bd8db7 # timeout=20
FATAL: Could not lock repository. Please try again

and next build in the same workspace is failed with error:
FATAL: Could not lock repository. Please try again

This happens because my repositore is very big. I want set a merge timeout or kill git process before next try.
Thanks

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

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

unread,
Dec 18, 2015, 10:19:02 PM12/18/15
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

ryazansev.dmitry@yandex.ru (JIRA)

unread,
Dec 21, 2015, 7:40:02 AM12/21/15
to jenkinsc...@googlegroups.com
Dmitry Ryazancev updated an issue
Change By: Dmitry Ryazancev
Component/s: git-client-plugin

sladynnunes98@gmail.com (JIRA)

unread,
Jan 23, 2020, 2:28:03 PM1/23/20
to jenkinsc...@googlegroups.com
Sladyn Nunes assigned an issue to Sladyn Nunes
Change By: Sladyn Nunes
Assignee: Sladyn Nunes
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

sladynnunes98@gmail.com (JIRA)

unread,
Jan 23, 2020, 2:59:22 PM1/23/20
to jenkinsc...@googlegroups.com
Sladyn Nunes commented on New Feature JENKINS-32143
 
Re: Set git merge timeout

With respect to this issue from a bit of research I suppose the changes are to be made to `PreBuildMerge.java` and my question is would we set the timeout just before the merge happens so that the process does not give an error or do we want to check if the merge has failed due to timeout by storing it in the `BuildData` and killing the process so that a new merge is attempted with a changed timeout.

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

unread,
Jan 23, 2020, 3:01:02 PM1/23/20
to jenkinsc...@googlegroups.com

I think we should keep it consistent with other timeout implementations. They configure a timeout on the command line git process and abort the command if it has not completed before the timeout expires.

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

unread,
Feb 2, 2020, 3:36:03 AM2/2/20
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: In Progress Review

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

unread,
Feb 2, 2020, 3:36:03 AM2/2/20
to jenkinsc...@googlegroups.com
Mark Waite started work on New Feature JENKINS-32143
 
Change By: Mark Waite
Status: Open In Progress
Reply all
Reply to author
Forward
0 new messages