[JIRA] (JENKINS-53959) Pipeline Git LFS avoid pull on Jenkins Master

8 views
Skip to first unread message

josephp90@gmail.com (JIRA)

unread,
Oct 9, 2018, 8:40:01 AM10/9/18
to jenkinsc...@googlegroups.com
Joseph Petersen updated an issue
 
Jenkins / Bug JENKINS-53959
Pipeline Git LFS avoid pull on Jenkins Master
Change By: Joseph Petersen
Summary: Pipeline Git LFS avoid pull on master Jenkins Master
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

josephp90@gmail.com (JIRA)

unread,
Oct 9, 2018, 8:41:02 AM10/9/18
to jenkinsc...@googlegroups.com

zionyx@gmail.com (JIRA)

unread,
Oct 9, 2018, 8:51:04 AM10/9/18
to jenkinsc...@googlegroups.com
KY Lee updated an issue
Change By: KY Lee
Priority: Trivial Minor

zionyx@gmail.com (JIRA)

unread,
Oct 9, 2018, 9:13:01 AM10/9/18
to jenkinsc...@googlegroups.com
KY Lee updated an issue
When using declarative pipeline in a pipeline(not multibranch-pipeline) job and adding the additional behavior to "Git LFS pull after checkout" .

This is actually done on master too. Which for very LARGE files seems over kill.

First off we don't have LFS installed on master.
Secondly we don't have that much storage allocated cause we never considered the master would be trying to pull from our LFS storage that is a job for our agents... :)

Unless I am mistaken I don't think this is the intended behavior.

Of course I could try an extension plugin that says avoids LFS checkout on master.

I would be happy to look into a solution for the git plugin if this is indeed not the intended behavior.

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

unread,
Oct 9, 2018, 10:16:02 AM10/9/18
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

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

unread,
Oct 9, 2018, 10:20:08 AM10/9/18
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-53959
 
Re: Pipeline Git LFS avoid pull on Jenkins Master

Extension plugin that allows optionally skipping LFS checkout on master seems like a reasonable approach in this case.

A declarative Pipeline job (not multibranch) was assumed (by me anyway) that if it performs a checkout on the master (to get the Jenkinsfile, or for whatever other reason), it would use the same checkout as the agent uses. I'm not sure that my assumption was valid, only that it was my assumption.

However, the GitHub Branch Source plugin, the Bitbucket Branch Source plugin, and the Gitea Branch Source plugin all use a REST API call to get the Jenkinsfile (for multibranch at least). If the purpose of the checkout on the master is just to obtain the Jenkinsfile, then I have no objection to an extension plugin that optionally skips LFS checkout on master.

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:10:22 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
 
Change By: Joseph Petersen
Assignee: Joseph Petersen
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:22:03 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Mark Waite
Change By: Joseph Petersen
Assignee: Joseph Petersen Mark Waite

rene.scheibe@gmail.com (JIRA)

unread,
Mar 7, 2020, 6:26:02 AM3/7/20
to jenkinsc...@googlegroups.com
René Scheibe updated an issue
 
Jenkins / Improvement JENKINS-53959
Change By: René Scheibe
Issue Type: Bug Improvement

rene.scheibe@gmail.com (JIRA)

unread,
Mar 7, 2020, 6:30:03 AM3/7/20
to jenkinsc...@googlegroups.com
René Scheibe commented on Improvement JENKINS-53959
 
Re: Pipeline Git LFS avoid pull on Jenkins Master

I think this optimization should not only be about LFS files. There may also be submodules that don't require a checkout or normal git repositories with big files checked in.

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

unread,
Mar 7, 2020, 8:00:02 AM3/7/20
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite
Reply all
Reply to author
Forward
0 new messages