# Continua variables to FinalBuilder - FinalBuilder accepts one, ignores the other

**URL:** <https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180>\
**Category:** Discussion\
**Created:** [June 4, 2014, 1:48am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180 "2014-06-04T01:48:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![larsfosdal](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/larsfosdal/32/2022_2.png) [@larsfosdal](https://www.finalbuilder.com/forums/u/larsfosdal)\
**Post date:** [June 4, 2014, 1:48am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/1 "2014-06-04T01:48:22Z")

</div>

In Continua, we have the variables&nbsp;  
CI\_BUILD\_VERSION$Build.BuildNumber$Expression  
CI\_RELEASE\_VERSION$Repository.PSDPrograms.LatestChangesetId$Expression  
  
In the FinalBuilder action, we pass CI\_BUILD\_VERSION to FinalBuilder variable BUILD\_VERSION, and ditto for RELEASE\_VERSION  
and it logs correctly.  
  
13:28:48 &nbsp; &nbsp; &nbsp;&nbsp;Variable [BUILD\_VERSION] set to [636]  
13:28:48 &nbsp; &nbsp; &nbsp;&nbsp;Variable [RELEASE\_VERSION] set to [22794]  
  
In the FinalBuilderScript, we assign the variables to the version property set, but the BuildVersion value appears to be ignored.  
Why?  
  
See log below with red/green highlights.

![13508_setpropvalues](https://www.finalbuilder.com/forums/uploads/default/original/2X/8/8a4b4e12ef3f896ae4f55091058c9a5ecaeb6b8f.png)

13:28:25 &nbsp; &nbsp; &nbsp;Stage: Applications  
13:28:37 &nbsp; &nbsp; &nbsp; Server To Agent Workspace Sync  
13:28:37 &nbsp; &nbsp; &nbsp; Started syncing files from the server[localhost] to the agent [DEV10002]  
13:28:37 &nbsp; &nbsp; &nbsp; Finished syncing files from the server [localhost] to the agent [DEV10002].  
13:28:48 &nbsp; &nbsp; &nbsp; Delete [Development PSD Applications]  
13:28:48 &nbsp; &nbsp; &nbsp; Delete action completed successfully  
13:28:48 &nbsp; &nbsp; &nbsp; FinalBuilder [PSD Applications]  
13:28:48 &nbsp; &nbsp; &nbsp; Parameters  
13:28:48 &nbsp; &nbsp; &nbsp; Working Directory: D:\Build\CI\_WS\Ws\990\Source\PSDPrograms\Build  
13:28:48 &nbsp; &nbsp; &nbsp; Executable: C:\Program Files (x86)\FinalBuilder 7\FBCMD.exe  
13:28:48 &nbsp; &nbsp; &nbsp; Arguments: /B -@ /vBUILD\_VERSION=636;RELEASE\_VERSION=22794; /pD:\Build\CI\_WS\Ws\990\Source\PSDPrograms\Build\Applications.fbz7  
13:28:48 &nbsp; &nbsp; &nbsp;   
13:28:48 &nbsp; &nbsp; &nbsp; Variable [BUILD\_VERSION] set to [636]  
13:28:48 &nbsp; &nbsp; &nbsp; Variable [RELEASE\_VERSION] set to [22794]  
13:28:48 &nbsp; &nbsp; &nbsp; D:\Build\CI\_WS\Ws\990\Source\PSDPrograms\Build\Applications.fbz7  
13:28:48 &nbsp; &nbsp; &nbsp; Main  
13:28:48 &nbsp; &nbsp; &nbsp; PropertySet define [VersionNumber]  
13:28:48 &nbsp; &nbsp; &nbsp;   
13:28:48 &nbsp; &nbsp; &nbsp; PropertySet assign properties [VersionNumber]  
13:28:48 &nbsp; &nbsp; &nbsp; Setting 7 property values on PropertySet PSDVersion  
13:28:48 &nbsp; &nbsp; &nbsp; Property AutoUpdateFileVersionString set to 1  
13:28:48 &nbsp; &nbsp; &nbsp; Property AutoUpdateProductVersionString set to 1  
13:28:48 &nbsp; &nbsp; &nbsp; Property BuildVersion set to 0  
13:28:48 &nbsp; &nbsp; &nbsp; Property LinkProductVersion set to 1  
13:28:48 &nbsp; &nbsp; &nbsp; Property MajorVersion set to 1  
13:28:48 &nbsp; &nbsp; &nbsp; Property MinorVersion set to 2  
13:28:48 &nbsp; &nbsp; &nbsp; Property ReleaseVersion set to 22794  
13:28:48 &nbsp; &nbsp; &nbsp;   
13:28:48 &nbsp; &nbsp; &nbsp; Build PSDServer  
13:28:48 &nbsp; &nbsp; &nbsp; Compiler selected is : C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\bin\dcc32.exe  
13:28:48 &nbsp; &nbsp; &nbsp; Generating Resource File…  
13:28:48 &nbsp; &nbsp; &nbsp; Including ICON File

---

<div class="post-metadata">

**Author:** ![larsfosdal](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/larsfosdal/32/2022_2.png) [@larsfosdal](https://www.finalbuilder.com/forums/u/larsfosdal)\
**Post date:** [June 4, 2014, 3:06am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/2 "2014-06-04T03:06:14Z")

</div>

Added a dummy variable to the FB7 project and made sure that Continua passed it as last param to FB7. Problem solved.   
 Parameter passing bug in Continua? (Semicolon behind last param?)   
 Parameter grabbing bug in FB7? (ver.7.0.0.2671)

---

<div class="post-metadata">

**Author:** ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)\
**Post date:** [June 5, 2014, 3:24am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/3 "2014-06-05T03:24:55Z")

</div>

Hi Lars,   
  
 Just attempted to reproduce the error here locally. Sadly I haven’t had any luck, the variables are passed correctly in each case. Does the error appear with version 7.0.0.2995 of FinalBuilder? Also what version of Continua CI are you currently on?   
  
 Also out of interest how are the FinalBuilder variables defined? This might point to something else going on.

---

<div class="post-metadata">

**Author:** ![larsfosdal](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/larsfosdal/32/2022_2.png) [@larsfosdal](https://www.finalbuilder.com/forums/u/larsfosdal)\
**Post date:** [June 5, 2014, 9:17am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/4 "2014-06-05T09:17:49Z")

</div>

Upgraded Continua yesterday to latest version. Will test with newest Finalbuilder.

---

<div class="post-metadata">

**Author:** ![larsfosdal](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/larsfosdal/32/2022_2.png) [@larsfosdal](https://www.finalbuilder.com/forums/u/larsfosdal)\
**Post date:** [June 5, 2014, 9:25am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/5 "2014-06-05T09:25:30Z")

</div>

All variables (AVAR is my dummy workaround)

![13508_variableseditor](https://www.finalbuilder.com/forums/uploads/default/original/2X/f/f322fb6a8f8b53b550f2aa4863745bdf5bf4bc00.png)  
Each of them is configured identically, apart from the default value

![13508_setvariable](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/47c81126f1be672d8cd74f74a9fbe29040625983.png)

and as mentioned before, they are updated like this.

![13508_setpropvalues2](https://www.finalbuilder.com/forums/uploads/default/original/2X/d/d0d9fd14972457f3a70698d1a7883a03530e4fe4.png)

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 5, 2014, 9:35am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/6 "2014-06-05T09:35:42Z")

</div>

Hi Lars   
  
 Not seeing anything unusual there. What repository type are you using on Continua CI? $Repository.PSDPrograms.LatestChangesetId$ will only return an integer for repositories that use integers for revisions numbers (perforce, subverison & surround from memory). On git and mercurial they use guids.

---

<div class="post-metadata">

**Author:** ![larsfosdal](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/larsfosdal/32/2022_2.png) [@larsfosdal](https://www.finalbuilder.com/forums/u/larsfosdal)\
**Post date:** [June 6, 2014, 9:41am UTC](https://www.finalbuilder.com/forums/t/continua-variables-to-finalbuilder-finalbuilder-accepts-one-ignores-the-other/5180/7 "2014-06-06T09:41:46Z")

</div>

We’re using SVN, so we currently get a five digit number. If we swap SCS, we’ll have to stuff the Change Set Id somewhere else.   
  
 After adding the dummy AVAR and ensuring it is the last value passed to FB7, it started working.   
 I’m inclined to think it was something in FB7, as the value appeared to be passed correctly.
