-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Hudson 1.344, Clearcase Plugin 1.1
I've noticed that clearcase views are not removed using "clearcase rmview" command.
In Clearcase's manual (cleartool man rmview) it states this:
[quote]
- Never remove a view with any command other than rmview.
- If a view still exists, do not use rmview -uuid to delete records
relating to it from any VOB. Make sure that the view need not be used
again before using this command.
[/quote]
The problem on not using this command is errors like this one:
" FATAL: View path for ccview_01 does not exist, but the view tag does.
Remove view from tagname instead of directory. ex: ct rmview -tag view_something
"
or
"FATAL: View path for ccview_03 does not exist, but the view tag does.
View cannot be created - build aborting.
Finished: FAILURE"
Real log output:
— copy/past —
[Component01] $ /opt/rational/clearcase/bin/cleartool unregister -view -uuid c5f5b55d.0bfb11df.8545.00:01:03:08:08:09
[Component01] $ /opt/rational/clearcase/bin/cleartool rmtag -view ccview_01
[Component01] $ /opt/rational/clearcase/bin/cleartool mkview -tag ccview_01 /net/hudson-server/storage/viewstorage/ccview_01.73269190
Created view.
Host-local path: hudson-server:/storage/viewstorage/ccview_01.73269190
Global path: /net/hudson-server/storage/viewstorage/ccview_01.73269190
It has the following rights:
User : user1 : rwx
Group: group1 : r-x
Other: : r-x
[Component01] $ /opt/rational/clearcase/bin/cleartool startview ccview_01
[Component01] $ /opt/rational/clearcase/bin/cleartool catcs -tag ccview_01
element * CHECKEDOUT
element * /main/LATEST
[Component01] $ /opt/rational/clearcase/bin/cleartool startview ccview_01
[Component01] $ /opt/rational/clearcase/bin/cleartool mount -all
[ccview_01] $ /opt/rational/clearcase/bin/cleartool lshistory -all -since 28-jan-10.10:56:21utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \n%c\n' -nco Project1/Customers/Customer01/component01
— end copy/paste —
What I've also noticed is that, if we change job's WORKSPACE, clearcase plugin looses it's ability to create or remove snapshot views, because it doesn't use the viewtag to manipulate the view.
So the behaviour becomes this:
1) checks if the view exists;
2) if it exists tries to remove it in the current WORKSPACE directory;
3) but because workspace changed, it no longer is able to remove the view because it's pathname it's not the current WORKSPACE.
4) But tries a "configured" number of times, because it "knows" the view exists (lsview is showing it) until it fails the build.
Thanks in advance.