[JIRA] [docker-slaves-plugin] (JENKINS-30600) git isn't ran inside build container

2,163 views
Skip to first unread message

nicolas.deloof@gmail.com (JIRA)

unread,
Sep 22, 2015, 6:26:01 PM9/22/15
to jenkinsc...@googlegroups.com
Nicolas De Loof created an issue
 
Jenkins / Bug JENKINS-30600
git isn't ran inside build container
Issue Type: Bug Bug
Assignee: Nicolas De Loof
Components: docker-slaves-plugin, git-client-plugin
Created: 22/Sep/15 10:25 PM
Priority: Minor Minor
Reporter: Nicolas De Loof

Using docker-slaves, the checkout build phase is ran with commands inside the remoting container (which by change has git) not inside the configured build container.

This is due to git-client to create it's own LocalLauncher vs using the Node's one.

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

nicolas.deloof@gmail.com (JIRA)

unread,
Jun 29, 2016, 2:36:01 PM6/29/16
to jenkinsc...@googlegroups.com
Nicolas De Loof commented on Bug JENKINS-30600
 
Re: git isn't ran inside build container

git-client plugin do not rely on Launcher/FilePath abstraction but sends the whole GitClient implementation class to remote, making it just impossible to rely on a Launcher from caller. Would need to fully refactor GitClient implementation to run on master.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

nicolas.deloof@gmail.com (JIRA)

unread,
Jul 6, 2016, 6:38:01 AM7/6/16
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 8, 2017, 10:32:02 AM2/8/17
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Change By: Jesse Glick
Component/s: docker-slaves-plugin

jglick@cloudbees.com (JIRA)

unread,
Feb 8, 2017, 10:32:02 AM2/8/17
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
Change By: Jesse Glick
Labels: docker-slaves

jglick@cloudbees.com (JIRA)

unread,
Feb 8, 2017, 10:32:02 AM2/8/17
to jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-30600
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

unread,
Feb 8, 2017, 10:34:01 AM2/8/17
to jenkinsc...@googlegroups.com
Jesse Glick commented on Bug JENKINS-30600
 
Re: git isn't ran inside build container

Affects docker-workflow as well from what I can tell: if Jenkins is configured with only a CLI Git tool (the default), and an agent lacks a Git executable,

docker.image('cloudbees/java-build-tools').inside {git '…'}

will fail on the git command with an error indicating that the command was not found—because it is being run in the agent’s namespace, not the container’s.

Reply all
Reply to author
Forward
0 new messages