1.8.0.96 Query expression does not work in 'Stash Server Url' field

Hi

In the 'Update Stash Build Status' event handler, the 'Stash Server Url' field says it takes a query expression. When I use a query expression in this field, the event handler errors with a 'UriFormatException'.

My steps:

1. Create an application variable called BitbucketServer with the value 'http://bitbucket.myserver.com.au'
2. In an Update Stash Build Status event handler, set the Stash Server Url field to %BitbucketServer%
3. When run, event handler fails with the following:

An error occurred while running handler 'BitBucket build status' for build event 'On Before Stage Start'. Message: Exception: UriFormatException Message: Invalid URI: The format of the URI could not be determined. Stack Trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Continua.Modules.Builds.EventHandlers.PlugIns.StashBuildEventHandlerPlugin.PostStatus(IBuildEventHandlerExecutionContext context, StashBuildStatus status, String commit, String username, String password, String comment, String linkUrl, String key, String buildVersion) at Continua.Modules.Builds.EventHandlers.PlugIns.StashBuildEventHandlerPlugin.ExecuteForBuildRepository(IBuildEventHandlerExecutionContext context, IBuildInfo build, String comment, StashBuildStatus status, String userName, String pwd, IList`1 buildChangesets, IRepositoryInfo repo, String targetUrl) at Continua.Modules.Builds.EventHandlers.PlugIns.StashBuildEventHandlerPlugin.Execute(IBuildEventHandlerExecutionContext context, String[] commentLines, StashBuildStatus status, Int32 buildId) at Continua.Modules.Builds.EventHandlers.PlugIns.StashBuildEventHandlerPlugin.Execute(IBuildEventHandlerExecutionContext context, IBuildEventType buildEventType) at Continua.Modules.Builds.EventHandlers.Entities.BuildEventHandler.Execute(IBuildEventHandlerExecutionContext context, IBuildEventType buildEventType)

When i enter 'http://bitbucket.myserver.com.au' directly into the 'Stash Server Url' field everything works as expected. Any suggestions?

Cheers,

Joel

Definitely a bug, I just pushed a fix, will post a link to a build with the fix here when it’s uploaded.

Here’s the build with the fix :

http://downloads.finalbuilder.com/downloads/continua/1.8/ContinuaCI.Server.Setup_x64_1.8.0.110.exe
http://downloads.finalbuilder.com/downloads/continua/1.8/ContinuaCI.Server.Setup_1.8.0.110.exe

http://downloads.finalbuilder.com/downloads/continua/1.8/ContinuaCI.Agent.Setup_x64_1.8.0.110.exe
http://downloads.finalbuilder.com/downloads/continua/1.8/ContinuaCI.Agent.Setup_1.8.0.110.exe

Thanks Vincent - that was fast!

Confirming that build fixes the issue for me. Thanks again.