FB Server set project variables

Hi,

I used CVS trigger in the Final Builder server to see if there is any change in the CVS and trigger the Build.

This works perfect.

Now i want to get the list of files that triggered the build.

I used 'set project variables' option and selected 'TriggerFileNames' as set to special value. But this is coming empty.

How do i get the file list to the project which is started by the Final Builder server?

 

Thanks,

Narender

 

 

Hi,

I tried to use the 'Set project variable' from the trigger itself. But when i selected 'Set to special value' , the dropdown box is not higlighted.

How can i get this enabled?

This is the feature that i am trying to use from FB project.

Thanks,

Narender

FBerror.JPG

Hi Narender,

The files that caused the build to trigger are automatically passed to FinalBuilder and are accessible from the ‘FBTriggerFiles’ collection using script. Here’s an example using Javascript:

var file;
for (var i = 0; i < FBTriggerFiles.Count; i++) {
file = FBTriggerFiles;
}

With regards to the special value drop down list not enabling, do you have Javascript enabled in your browser?

Regards,
Paul.

I used 'set project variables' option and selected 'TriggerFileNames' as set to special value. But this is coming empty.


Likewise I have this issue in FBS7, should it work? Or is it essential to run a script to access the FBTriggerFiles collection? (And like wise how do I access the SVN commit msg?)

Many thanks
Paul

Hi Paul,

FinalBuilder 7 has an action called ‘Trigger Files Iterator’ which lets you iterate over the trigger files collection without needing script, it should just work without needing anything set in FinalBuilder Server.

Regards,
Paul.