-
Type:
New Feature
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: clearcase-plugin
-
None
-
Environment:Hudson 1.433, Clearcase Plugin 1.1
It would be useful to have a check option in the "Create Dynamic View" section named "Create view if it doesn't exist" or something similar. (Or something that would avoid what I explain below.)
This is usefull in my case, where I share the same dynamic view in several Hudson jobs.
It's very usefull to use the same view in jobs that have dependencies between them. In certain conditions I can't create only one job with several build executors (shell, maven, etc.) because of dependencies, and because if one fails, the build has to start all over again. So I use the same clearcase view in several jobs, and each job will trigger the next one. If one fails, we can start from the failed one, instead of the beginning, thus improving build time.
I ask this kind of feature because, it's a bit awkward to have to create the view manually, outside Hudson, to be able to use it in several jobs. If we specify it to be created in every job, it gets deleted everytime the job is started, thus ruins the whole purpose of having a dynamic view shared among jobs.
So, the best case scenario would be, having the Clearcase View created if it doesn't exist, and left it as is, if it already exists.
One last thing I noticed that could avoid this to work is to create the Views without the added numeric string at the end, as it does now. I mean, currently dynamic views are created like "$CLEARCASE_VIEWNAME.-14352345". But snapshot are not. I think they should be created exactly like it's specified in job's configuration.
As an example, to be sure the dynamic view as a unique name, I usually use environment variables specified as job's parameters, so a Viewname becomes like "cc_viewname1_${CUSTOMER}_${PRODUCT}".
Thanks in advance.