Permission denied when cleartool startview on windows XP

139 views
Skip to first unread message

rongbo.jin

unread,
Nov 22, 2011, 3:58:10 AM11/22/11
to Jenkins Users
Hi,

I am trying integrate Jenkins with clearcase on windows xp. My Jenkins
ver. 1.440, with base clearcase and ActiveDirecotry plugins
installed.

I have logined in as domain user, configured Jenkins to build with an
existing dynamic view. From the following output, the first command
"cleartool lsview" is ok, but the second command "cleartool startview"
failed with "Permission denied", see the attached "log info part
one".

If i run the command "cleartool startview jin57400_CNS_C.
01.42_integration" manually in windows command shell, it's ok.

I have searched in this mail list and found this thread:
http://groups.google.com/group/jenkinsci-users/browse_thread/thread/7e54506f6a5f7061/dba39076a5fdbbda?lnk=gst&q=cleartool+windows#dba39076a5fdbbda,
which suggesting "run the id command via jenkins", see the attached
"log info part two".

I guess Jenkins run "cleartool startview" as "SYSTEM" instead of my
domain account. Could any one give me some suggestion?

thanks in advance.


//
============================================================================
// log info part one -- "Permission denied" issue


Started by user Rongbo Jin
[workspace] $ cleartool lsview jin57400_CNS_C.01.42_integration
* jin57400_CNS_C.01.42_integration //beiview1/data/beiview1_1/jin57400/
jin57400_CNS_C.01.42_integration.vws
[workspace] $ cleartool startview jin57400_CNS_C.01.42_integration
cleartool: Error: Unable to access "//beiview1/data/beiview1_1/
jin57400/jin57400_CNS_C.01.42_integration.vws": Permission denied.
FATAL: Base ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code.
Command line="startview jin57400_CNS_C.01.42_integration", actual exit
code=1
at
hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:
107)
at
hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:
72)
at
hudson.plugins.clearcase.ClearToolExec.startView(ClearToolExec.java:
823)
at
hudson.plugins.clearcase.action.DynamicCheckoutAction.startView(DynamicCheckoutAction.java:
116)
at
hudson.plugins.clearcase.action.DynamicCheckoutAction.isViewValid(DynamicCheckoutAction.java:
144)
at
hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:
526)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
at hudson.model.AbstractBuild
$AbstractRunner.checkout(AbstractBuild.java:568)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
457)
at hudson.model.Run.run(Run.java:1404)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:230)
Finished: FAILURE


//
============================================================================
// log info part two -- "id" output is different from the one I run
directly in command shell

Started by user Rongbo Jin
[workspace] $ cmd /c call C:\WINDOWS\TEMP
\hudson3728629550910199636.bat

C:\Jenkins\jobs\Test1\workspace>id
uid=500(SYSTEM) gid=544(Administrators) groups=544(Administrators)

C:\Jenkins\jobs\Test1\workspace>exit 0
Finished: SUCCESS

Reply all
Reply to author
Forward
0 new messages