[JIRA] (JENKINS-49497) Proxy not set when doing lightweight checkout

12 views
Skip to first unread message

david@davidsteinsland.net (JIRA)

unread,
Feb 12, 2018, 2:42:02 AM2/12/18
to jenkinsc...@googlegroups.com
David Stein created an issue
 
Jenkins / Bug JENKINS-49497
Proxy not set when doing lightweight checkout
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-client-plugin
Created: 2018-02-12 07:41
Environment: git-client-plugin 2.7.1, jenkins 2.89.3
Priority: Minor Minor
Reporter: David Stein

I've setup a pipeline project that pulls pipeline script from SCM, and by default "Lightweight checkout"  is checked. This causes an error saying that:

hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/master:refs/remotes/origin/master --prune" returned status code 128:
stdout:
stderr: fatal: unable to access 'https://github.com/owner/repo.git/': Failed connect to github.com:443; Connection refused

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1715)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
    at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:351)
    at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:196)
    at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:172)
    at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:107)
    at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
    at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:421)
Finished: FAILURE

When deselecting the Lightweight checkout, the cloning works just fine.

I suspect that the proxy configuration is not passed on to the git client instance that does the lightweight checkout.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

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

unread,
Feb 12, 2018, 8:44:03 AM2/12/18
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: git-plugin
Component/s: scm-api-plugin
Component/s: git-client-plugin

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

unread,
Feb 12, 2018, 8:44:03 AM2/12/18
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

lanevo@gmail.com (JIRA)

unread,
Dec 9, 2019, 10:29:03 PM12/9/19
to jenkinsc...@googlegroups.com
Min Kim commented on Bug JENKINS-49497
 
Re: Proxy not set when doing lightweight checkout

It's been almost two years, is this ever going to be resolved?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages