Actions for parsing and iterating Trigger file names

Hi,

I like the fact that I can parse trigger information to the project via a build using special variable TriggerFileNames, however I'm currently required to do a manual text find/replace to extract the information I need.I'd like an action similar to "set variable" based on modifier, to extract the information and a way to iterate where theres is more than one entry in the file name. I guess in time I'd be forced to write my own action for this functionality, but it would be good if it worked out of the box, particularily if the format of the data changes in future versions of FB.

Current information I'm using are file name from file triggers, and revision number from perforce trigger.

Regards,

Dave.

Hi David

I’m not sure I understand what you are wanting to do. If you have a variable with multiple values, you can use the List Iterator and set the list to the variable, it will then extract each value (based on the separator) and populate another variable.

HTH

I cannot use a list iterator as from what I can tell, there is no seperator to tell them apart.

perforce triggerfilenames example:

//depot/app/test.c Comment: fix test application User: david@dave_work Version: 54902 /depot/app/test.h Comment: fix test application User:david@dave_work Version: 54902 /depot/app/test.c Comment: another fix User:david@dave_work Version: 54908

I could use “//” as a seperator to identify a modification but then I still need to do a number of manipulations to get the version number, user name etc… that would require to be done via a number of text find/replace actions, or a custom action. This also applies to the trigger file names for file triggers.