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
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