Adam Duro commented on Bug JENKINS-24338

I have confirmed all of the same things as OP. Jenkins is in docker group, and I can even run the exact same docker commands as the jenkins user when I run them directly on the shell.

Here is the output of my job:

Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/Angemo_Test/workspace
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@github.com:zehnergroup/rdi-angemo.git # timeout=10
Fetching upstream changes from g...@github.com:zehnergroup/rdi-angemo.git
 > git --version # timeout=10
using GIT_SSH to set credentials ZG Jenkins Bot
 > git fetch --tags --progress g...@github.com:zehnergroup/rdi-angemo.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 4df9e9c94199d24b60185e770bf3936e710cc6c0 (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 4df9e9c94199d24b60185e770bf3936e710cc6c0
 > git rev-list 4df9e9c94199d24b60185e770bf3936e710cc6c0 # timeout=10
[workspace] $ /bin/sh -xe /tmp/hudson2446192870282789698.sh
+ docker build --rm=true -t reading/angemo:4 .
Sending build context to Docker daemon 
2014/12/20 01:53:04 Post http:///var/run/docker.sock/v1.15/build?rm=1&t=reading%2Fangemo%3A4: dial unix /var/run/docker.sock: permission denied
Build step 'Execute shell' marked build as failure
Finished: FAILURE

If I "sudo su" into the jenkins user and go to the workspace for the job, and run that same build command, the image builds just fine.

The problem only exists when I try to run the build as part shell script step in the jenkins job.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to