Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 20/Dec/14 3:43 AM
Description:

When I run the following as the jenkins user on the command line

$ groups

I get this:


jenkins@zg-jenkins-berkshelf:~$ groups
jenkins docker

When I create a simple job that runs the same "groups" command as a shell script step, I get this:

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/hudson245901703018479391.sh
+ groups
jenkins
Finished: SUCCESS

Jenkins "in-job" does not have the same groups as the jenkins user on command line.

Environment: Jenkins Version 1.594, OS: Ubuntu 14.04, Installation Type: WAR, Java: java-6-openjdk-amd64
Project: Jenkins
Labels: job
Priority: Minor Minor
Reporter: Adam Duro
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