Clearcase Error when starting view

347 views
Skip to first unread message

roy....@gmail.com

unread,
Feb 28, 2013, 3:09:29 PM2/28/13
to jenkins...@googlegroups.com
I'm having trouble building from a Clearcase VOB.  I get this error when Jenkins tries to start the view (some paths abbreviated):
 
Started by user anonymous
Building in workspace C:\Program Files (x86)\Jenkins\workspace\my_workspace
[my_workspace] $ "C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleartool" lsview my_view
* my_view         \\my_server\viewstore...\my_view.vws
[my_workspace] $ "C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleartool" startview my_view
cleartool: Error: Unable to access \\my_server\viewstore...\my_view.vws: Invalid argument.
FATAL: Base ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="startview my_view", actual exit code=1
	at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121)
	at hudson.plugins.clearcase.ClearToolExec.startView(ClearToolExec.java:903)
	at hudson.plugins.clearcase.action.BaseDynamicCheckoutAction.startView(BaseDynamicCheckoutAction.java:115)
	at hudson.plugins.clearcase.action.BaseDynamicCheckoutAction.isViewValid(BaseDynamicCheckoutAction.java:157)
	at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:646)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1342)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588)
	at hudson.model.Run.execute(Run.java:1567)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:237)
Finished: FAILURE
 
 
If I execute the same command "cleartool lsview my_view" from a DOS prompt I get the same output as in Jenkins:
* my_view         \\my_server\viewstore...\my_view.vws
 
If I execute the same command "cleartool startview my_view" from the DOS prompt it returns with no errors.
 
Could this be happening because I'm running as a different user in Jenkins who doesn't have permission to access the view file?
I tried running a job that just executes "set" to see the environment properties and it says the username is my machine name which isn't the user I normally use.
 
Regards,
  -Roy

Steve K

unread,
Feb 28, 2013, 3:18:45 PM2/28/13
to jenkins...@googlegroups.com
Roy,

Your Jenkins slave runs as a specific user.  You'll see what user that is by looking at how the "Jenkins Slave" service logs on.
Does that log on have proper access to the specified view?
If not, you'll need to change how the service logs on or make sure the view you're using is created by the logged on user.

Steve K.

roy....@gmail.com

unread,
Mar 1, 2013, 11:32:00 AM3/1/13
to jenkins...@googlegroups.com
Steve,
 
That was my problem.  I went to the Windows Services list, double-clicked on the Jenkins service and under the "Log On" tab I was able to change the user to one that has access to my Clearcase View.  Now it's all working.
Thanks for the help!
 
  -Roy

Hari Poludasu

unread,
Jun 6, 2014, 4:07:13 AM6/6/14
to jenkins...@googlegroups.com
Thanks Roy,
I was struck with same problem and your post helped me in resolving this issue.

Regards,
Hari
Reply all
Reply to author
Forward
0 new messages