# Possible bug: build integration

**URL:** https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900
**Category:** Bugs
**Created:** [March 27, 2014, 7:30am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900 "2014-03-27T07:30:27Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [March 27, 2014, 7:30am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/1 "2014-03-27T07:30:27Z")

</div>

Hi,  
  
I have implemented Continua CI support in GitVersion and it looks like I found a possible bug. I have been using it successfully on several projects, but it doesn’t work for a specific one. Luckily everything is public so you can easily test it.  
  
1) Create a new configuration with this repository:&nbsp;**[https://github.com/catel/catel.fody](https://github.com/catel/catel.fody)** =\> **Catel\_Fody**  
2) Create an action with the following properties:  
  
Executable path: $Source.Catel\_Fody.Path$\tools\GitVersion\GitVersion.exe  
Working directory:&nbsp;$Source.Catel\_Fody.Path$  
Arguments:&nbsp;/url $Source.Catel\_Fody.Url$&nbsp;/b $Source.Catel\_Fody.Path$&nbsp;/output buildserver  
  
What happens is that the version is correctly set to (in my case 1.9.0-Unstable2). This is the output:  
  
_Executing GenerateSetVersionMessage for ‘ContinuaCi’.&nbsp;  
Program ‘GitVersion.exe’ completed successfully._  
  
I did expect something like this though (which works great on other projects):  
  
_Executing GenerateSetVersionMessage for ‘ContinuaCi’.&nbsp;  
Build version has been set to ‘1.3.0-Unstable5’.  
Executing GenerateBuildLogOutput for ‘ContinuaCi’.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_major’ as it does not exist.&nbsp;  
An unexpected error occurred: Could not resolve variable ‘gitversion\_minor’ as it does not exist.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_patch’ as it does not exist.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_suffix’ as it does not exist.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_longversion’ as it does not exist.  
Variable ‘%gitversion\_nugetversion%’ has been set to ‘1.3.0-Unstable0005’.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_shortversion’ as it does not exist.&nbsp;  
An unexpected error occurred: Could not resolve variable ‘gitversion\_branchname’ as it does not exist.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_branchtype’ as it does not exist.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_sha’ as it does not exist.  
Variable ‘%gitversion\_majorminorpatch%’ has been set to ‘1.3.0’.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_semver’ as it does not exist.  
Variable ‘%gitversion\_version%’ has been set to ‘1.3.0-Unstable5’.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_prereleasepartone’ as it does not exist.&nbsp;  
An unexpected error occurred: Could not resolve variable ‘gitversion\_prereleasenumber’ as it does not exist.  
An unexpected error occurred: Could not resolve variable ‘gitversion\_stability’ as it does not exist._  
  
_Program ‘GitVersion.exe’ completed successfully._  
  
I am sure that GitVersion.exe works correctly because I have ran it without Continua CI, then it works great.  
  
I _think_ something goes wrong when parsing this value:  
  
@@continua[setBuildVersion value=‘1.9.0-Unstable2’]  
  
**Note that the version of the build is changed, but that the output of the process has stopped after this.**

---

<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: [March 28, 2014, 12:48pm UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/2 "2014-03-28T12:48:02Z")

</div>

I think the problem is this :   
  
 Arguments: /url $Source.Catel\_Fody.Url$ /b $Source.Catel\_Fody.Path$ /output buildserver   
  
 it should be: /url $Source.Catel\_Fody.Url$ /b $Source.Catel\_Fody.Branch$ /output buildserver   
  
 The branch parameter was wrong.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [March 28, 2014, 10:09am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/3 "2014-03-28T10:09:13Z")

</div>

I am sorry, it was my mistake (in the post). If it would have been the path, it wouldn’t have event returned any value. The log of the file being executed is correct:   
  
 Working Directory: C:\CI\_WS\Ws\1239\Source\Catel\_Fody   
 Executable: C:\CI\_WS\Ws\1239\Source\Catel\_Fody\tools\GitVersion\GitVersion.exe   
 Arguments: /url [https://github.com/Catel/Catel.Fody](https://github.com/Catel/Catel.Fody) /b develop /output buildserver

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [March 28, 2014, 10:12am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/4 "2014-03-28T10:12:32Z")

</div>

Hmmm, on a new configuration it works.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [March 28, 2014, 10:46am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/5 "2014-03-28T10:46:26Z")

</div>

No, it seems to be a synchronization issue. See the output where I put 2 exactly the same executables after eachother:  
  
[Attachment unavailable]

---

<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: [March 31, 2014, 7:40am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/6 "2014-03-31T07:40:50Z")

</div>

Hi Geert   
  
 Thanks, I can reproduce this. It appears to be an issue with logging, the action is working fine. We’ll look into it.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 14, 2014, 7:44am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/7 "2014-04-14T07:44:09Z")

</div>

Hi Geert,  
  
The process messages were being picked up after the process ends. &nbsp;We have now implemented&nbsp;several improvements to the Continua process runner to deal with this issue. You can download a new build here:&nbsp;  
  
[ContinuaCI Server v1.0.0.3054](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_x64_1.0.0.3054.exe)  
[ContinuaCI Agent v1.0.0.3054](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup_x64_1.0.0.3054.exe)

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [April 14, 2014, 9:22am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/8 "2014-04-14T09:22:31Z")

</div>

Fix seems to work 🙂

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [April 15, 2014, 7:22am UTC](https://www.finalbuilder.com/forums/t/possible-bug-build-integration/5900/9 "2014-04-15T07:22:18Z")

</div>

Hi Geert,

Apologies, but the last build omits newline characters from the process output and this didn't come up in our testing.

Please install the following fix:

[ContinuaCI Server v1.0.0.3060](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Server.Setup_x64_1.0.0.3060.exe)&nbsp;  
[ContinuaCI Agent v1.0.0.3060](http://downloads.finalbuilder.com/downloads/continua/1.0/ContinuaCI.Agent.Setup_x64_1.0.0.3060.exe)
