[JIRA] (JENKINS-57246) "Git LFS pull after checkout" has no effect on build node

2 views
Skip to first unread message

przemyslaw.czechowski@gmail.com (JIRA)

unread,
Apr 30, 2019, 7:27:03 AM4/30/19
to jenkinsc...@googlegroups.com
Przemysław Czechowski created an issue
 
Jenkins / Bug JENKINS-57246
"Git LFS pull after checkout" has no effect on build node
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-client-plugin, git-plugin
Created: 2019-04-30 11:26
Environment: Jenkins master:
Debian GNU/Linux 9
git version 2.20.1
git-lfs/2.7.2

Build node:
Ubuntu 18.04.2 LTS
git version 2.17.1
git-lfs/2.3.4

(I'm not sure if those are the git executables used by the plugin)

Jenkins plugins:
Git client plugin 2.7.7
Git Parameter Plug-in 0.9.10
Git plugin 3.9.4
Multiple SCMs plugin 0.6
Labels: plugin jenkins
Priority: Minor Minor
Reporter: Przemysław Czechowski

I have a Jenkins job with "Git LFS pull after checkout" added as an additional behavior to a git repository (in MultiSCMs).
The job works properly on master executor. But on remote build node, it seems like lfs pull has no effect. There's no error message. Output is the same on both master and build node:

```
(...)
Checking out Revision f13e62f0215ebbe21e63ad8d4219668bdeadbeef (master)
Enabling Git LFS pull
> git config core.sparsecheckout # timeout=10
> git checkout -f f13e62f0215ebbe21e63ad8d4219668bdeadbeef
> git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials Jenkins Master
> git lfs pull origin
Commit message: "[P12345-05729] blahblahblah"
> git rev-parse FETCH_HEAD^{commit} # timeout=10
(...)
```

But on master it works properly (large files are downloaded, I can check it by manually accessing the workspace) while on the build node it doesn't work (large files are left in "uninitialized" state, they have only a couple of bytes).
Node is accessed by master via ssh.

*Jenkins master:*
Debian GNU/Linux 9
git version 2.20.1
git-lfs/2.7.2

*Build node:*
Ubuntu 18.04.2 LTS
git version 2.17.1
git-lfs/2.3.4

(I'm not sure if those are the git executables used by the plugin)

Jenkins plugins:
Git client plugin 2.7.7
Git Parameter Plug-in 0.9.10
Git plugin 3.9.4
Multiple SCMs plugin 0.6

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

przemyslaw.czechowski@gmail.com (JIRA)

unread,
Apr 30, 2019, 7:29:02 AM4/30/19
to jenkinsc...@googlegroups.com
Przemysław Czechowski updated an issue
I have a Jenkins job with "Git LFS pull after checkout" added as an additional behavior to a git repository (in MultiSCMs).
The job works properly on master executor. But on remote build node, it seems like lfs pull has no effect. There's no error message. Output is the same on both master and build node:

```


{noformat}
(...)
Checking out Revision f13e62f0215ebbe21e63ad8d4219668bdeadbeef (master)
Enabling Git LFS pull
> git config core.sparsecheckout # timeout=10
> git checkout -f f13e62f0215ebbe21e63ad8d4219668bdeadbeef
> git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials Jenkins Master
> git lfs pull origin
Commit message: "[P12345-05729] blahblahblah"
> git rev-parse FETCH_HEAD^\{commit} # timeout=10
(...)
``` {noformat}



But on master it works properly (large files are downloaded, I can check it by manually accessing the workspace) while on the build node it doesn't work (large files are left in "uninitialized" state, they have only a couple of bytes).
Node is accessed by master via ssh.


**Jenkins master:**
Debian GNU/Linux 9
git version 2.20.1
git-lfs/2.7.2

**Build node:**
Ubuntu 18.04.2 LTS
git version 2.17.1
git-lfs/2.3.4

(I'm not sure if those are the git executables used by the plugin)

Jenkins plugins:
Git client plugin 2.7.7
Git Parameter Plug-in 0.9.10
Git plugin 3.9.4
Multiple SCMs plugin 0.6

przemyslaw.czechowski@gmail.com (JIRA)

unread,
Apr 30, 2019, 7:31:02 AM4/30/19
to jenkinsc...@googlegroups.com

przemyslaw.czechowski@gmail.com (JIRA)

unread,
Apr 30, 2019, 7:44:02 AM4/30/19
to jenkinsc...@googlegroups.com
Przemysław Czechowski updated an issue
I have a Jenkins job with "Git LFS pull after checkout" added as an additional behavior to a git repository (in MultiSCMs).
The job works properly on master executor. But on remote build node, it seems like lfs pull has no effect. There's no error message. Output is the same on both master and build node:




{noformat}
(...)
Checking out Revision f13e62f0215ebbe21e63ad8d4219668bdeadbeef (master)
Enabling Git LFS pull
> git config core.sparsecheckout # timeout=10
> git checkout -f f13e62f0215ebbe21e63ad8d4219668bdeadbeef
> git config --get remote.origin.url # timeout=10
using GIT_SSH to set credentials Jenkins Master
> git lfs pull origin
Commit message: "[P12345-05729] blahblahblah"
> git rev-parse FETCH_HEAD^\{commit} # timeout=10
(...)
{noformat}



But on master it works properly (large files are downloaded, I can check it by manually accessing the workspace) while on the build node it doesn't work (large files are left in "uninitialized" state, they have only a couple of bytes).
Node is accessed by master via ssh.


*Edit:* When I manually run `git lfs pull origin` on node's workspace (after placing the key in _~/.ssh_) it properly starts to download the files. For some reason, when the same command is called by the plugin (with credentials passed using ssh key forwarding and setting GIT_SSH, I guess) it has no effect.

przemyslaw.czechowski@gmail.com (JIRA)

unread,
Apr 30, 2019, 8:01:02 AM4/30/19
to jenkinsc...@googlegroups.com
Przemysław Czechowski updated Bug JENKINS-57246
 

Reporter error. The issue is non-existent.

Change By: Przemysław Czechowski
Status: Open Fixed but Unreleased
Resolution: Not A Defect

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

unread,
Apr 30, 2019, 11:26:01 AM4/30/19
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,
Apr 30, 2019, 11:26:02 AM4/30/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-57246
 
Re: "Git LFS pull after checkout" has no effect on build node

Thanks Przemysław Czechowski, can you describe in a little more detail what persuaded you that the problem you were seeing was not actually a problem?

przemyslaw.czechowski@gmail.com (JIRA)

unread,
May 2, 2019, 6:08:01 AM5/2/19
to jenkinsc...@googlegroups.com

It was just a silly mistake on my side: I was adding LFS Pull option to wrong SCM.

rene.scheibe@gmail.com (JIRA)

unread,
Dec 28, 2019, 7:11:03 PM12/28/19
to jenkinsc...@googlegroups.com
Change By: René Scheibe
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages