How to find all ClearCase projects using a particular component - clearcase-ucm

The only way I found how to find all ClearCase projects that use a particular component is the following:
Get a list of all the projects' Integration streams:
cleartool lsproj -fmt %[istream]Xp -invob <pvob>
For each Integration stream found, get a list of foundation baselines:
cleartool lsstream -fmt %[found_bls]CXp <stream>
For each foundation baseline found, check if the component appears in the output:
cleartool descr baseline:<baseline> | find "component: <component>"
This works perfectly but really looks like a roundabout way to do it. Anyone know of a more efficient way?

That is pretty much the usual way to explore those UCM projects.
I used a similar way in "How to obtain UCM stream and baseline with cleartool?"
Maybe a cleartool lsstream --tree allows you to get all the streams directly, instead of querying stream by stream.

Related

Is it possible to upload test data files with folders in to Blazemeter

I have created a JMeter project with the below structure.
Project folder
|-JMeterProject.jmx
|
|-environments-folder
| |-environment1.properties
| |-environment2.properties
|
|-data-folder
|-data1.csv
|-data2.csv
When I try to add this project in to blazemeter, I could not find a way upload the folder.
UPDATE: I retrieve the files using following script
${__BeanShell(import org.apache.jmeter.services.FileServer;FileServer.getFileServer().getBaseDir();)}\environments-folder\\${environment}.properties
Of Course I can change the Jmeter project to refer files in the same folder and copy all in the fame level. But I want to keep the structure the same for various other reasons.
I read through the documentation , but non explains this kind of data file management.
I this something possible?
I believe you're looking for Shared Folders feature
Going forward I would recommend opening a BlazeMeter Support Ticket for this sort of questions as BlazeMeter team knows their product much better than anyone here.

In Sublime Text, is there a method to search only across files under version control?

Sublime Text's Find in Files feature is handy, but I often wish there were a method (or perhaps a plugin I cannot find) to include only files under version control—or, inversely, to exclude files not under version control.
Ideally I'd cherish a <git tracked files> tag, similar to the <open files> and <current file> tags you can use.
Is there a method I could use to achieve this search scope, or a plugin which would allow it?
Sublime's internal Find in Files functionality can be used to search any folder or folders including the ability to add filters to reject or add particular files or file sets, but those filters operate on the path only, not on the contents of the file or any metadata. There is also not an API endpoint for adding new filters to the list or any way for a plugin to interact with the search at all (except to do something to the results once they're generated).
As such, the only way to pull something like this off would be a package/plugin that creates a replacement Find in Files functionality that is more extensible. I'm not aware of any package that does that myself and I've never come across anyone asking about one previously, but there may be something on Package Control that does this.
Depending on your use case you might be able to mostly get what you want by excluding untracked files and/or folders from the search. For example a common notion is to redact node_modules as largely uninteresting in the general case. That's not really a solution to your particular problem, though.

How to use Subversion with HelpNDoc

I am writing a documentation for a project that involves multiple developers. We use Subversion (SVN) to work on our code base.
I wrote the first draft of the documentation document using HelpNDoc, which I like for the nice tree-view and easy of use; the problem is that there is a single file, so I don't know how to use SVN to allow other developers to contribute to the documentation and update it.
Do you know if it's possible? If not, can you advice a nice software, easy to use, with a tree-view of the documentation that can be used with SVN or makes it possible for multiple users to update it? We use Windows.
HelpNDoc projects are binary files based on the SQLite open source database engine. The advantage is that the whole documentation stored in a single file so it can easily be copied, moved, shared, backed-up...
However one drawback is that it has to be checked-in as binary content in any version control system including Subversion: diff and merge are not possible on those files.
One possible solution would be to use external documents in HelpNDoc's library: each user works on her own document (which can be a Word document, and HTML web-page...) and a master HelpNDoc project is created to include those documents at generation time. See "Include a file at generation time" in the following step by step guide: How to add an item to the library
Amount of files doesn't matter, real format (text/* or binary) - does. If SVN|any VCS can merge two HelpNDoc files with diverged history (just try it by hand), you'll be happy
I once used Helpinator for software documentation, it's pretty close to HelpnDoc but it's storage format is more suitable for version control.

TeamCity: search over configuration parameters

Is it possible to perform a search over all the configuration parameters in a server?
The reason I'm asking is because I have a path that points to a specific C# solution, and I need to update it, but I don't want to have to look in every build configuration.
Basically under the hood all your TeamCity build configurations are just XML files in the BuildServer\config\projects\ folder and sub folders. You can just do a grep over those XML files to find your configuration parameter.
I have done mass find and replace operations on those XML files before without problems (of course got to make sure that what you are replacing is not used anywhere else in the XML, and always keep a backup).
On our on prem TeamCity 2018.1.3 install the buildSettings are stored in /data/teamcity-data/system/artifacts
The following grep term will find all the things you are looking for
grep -rPe "searchRegexHere" --include buildSettings.xml .

How can I use two Clearcase views simultaneously?

I am running code review tools on a large application. The code is all held in a ClearCase team view, but information on the Maven build is held in another. The developers get a view which includes the code and the Maven build repository, but that is not possible for test teams here. I have a view which lets me see the code and another view which gives me access to the Maven repository.
My problem is I can't seem to find a way to have both views active at once.
To run my test tools I use cleartool setview -exec "test scripts etc" mycodeview
Is there a way to run my review tools while also having access to mymavenview?
I confirm that for dynamic view, you cannot use cleartool setview for several views.
setview is only a way to mount the vobs directory within your dynamic view to /vobs.
I would rather use snapshot views, update their content in a custom path, and through symlink (not managed by ClearCase), make sure I see the relevant content of one view from the other.
Notes:
a cleartool symlinks isn't useful here, since one view don't reflect the full content you need.
dynamic views could be used, but I find them much slower in those case that snapshot views.

Resources