Hi Richard,
Thanks for reply, I am bit confused again.
- Consider I Logged-In to Jenkins with User account "Test1" (this account
is not existed on network).
- When job is called, batch script will create folders & remove. But
"Test1" doesn't have permissions (this user itself not existed on the
system).
Will this be successful execution if yes considering which user Jenkins
created the folders?

I tried this on windows, but who ever user logged in the create and
deletion of folders is successful.
---------------------------------

Started by user test user <http://localhost:8080/user/testUser>
Building in workspace C:\Program Files
(x86)\Jenkins_1\jobs\TestCallByTestUser\workspace
[workspace] $ cmd /c call C:\Windows\TEMP\hudson7256762012989360322.bat

C:\Program Files
(x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>echo "Test Call from
Jenkins"
"Test Call from Jenkins"

C:\Program Files
(x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>echo user executing
-
user executing -

C:\Program Files
(x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>mkdir
c:\JenkinsCreatedFolder

C:\Program Files
(x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>rmdir
c:\JenkinsCreatedFolder1

C:\Program Files (x86)\Jenkins_1\jobs\TestCallByTestUser\workspace>exit 0
Finished: SUCCESS


---------------------------------

Thanks,
Rudra



On 7 August 2013 10:16, Richard Bywater <[email protected]> wrote:

> If you are referring to which user will the shell execution happen under,
> it will be the user which Jenkins is running as.
>
> Richard.
>
>
> On Wed, Aug 7, 2013 at 4:32 PM, Raghava Rudrakanth P V <
> [email protected]> wrote:
>
>>  Hi Team,
>> I am new user of Jenkins and have a question.
>>
>> 1. I created job which executes the shell script.
>> 2. Configured users using Jenkins own database and was able to login to
>> Jenkins and execute the job.
>>
>> Now when the shell execution is happening which User is considered for
>> execution?
>>         - Is this going to be login user? if yes do this user credentials
>> should match the credentials of the enterprise user.?
>>         - Is this going to be the user who installed Jenkins? or by
>> default will it be administrator.
>>
>> Thanks in advance for help.
>>
>> Thanks,
>> Rudra
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/tqc-8EytDmc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to