Any way to do it in the meantime? And any ETA on that particular release?
Just have a deployment I need to do.
Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Posts
-
RE: Issue using EnsureAppPool
-
RE: Issue using EnsureAppPool
Well I'm using variables set in the Application/Settings/Template Variables section and they are numbers but I get this error:
Unhandled exception: System.InvalidCastException: Invalid cast from 'System.String' to 'System.TimeSpan'. at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider) at Inedo.BuildMaster.PlanExecuter.ScriptPropertyMapper.CoerceValue(RuntimeValue value, Type type) at Inedo.BuildMaster.PlanExecuter.ScriptPropertyMapper.SetPropertyValue(Object target, IVariableEvaluationContext variableContext, String propertyValue, PropertyInfo property) at Inedo.BuildMaster.PlanExecuter.ScriptPropertyMapper.SetProperties(Object target, ActionStatement action, IVariableEvaluationContext variableContext) at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.DeploymentPlanExecuter.<Inedo-ExecutionEngine-Executer-IExecutionHostEnvironment-ExecuteActionAsync>d__21.MoveNext()I've actually got the one field that requires a timespan set to 0 in the variable I'm passing to it.
-
Issue using EnsureAppPool
When trying to use Ensure-AppPool and using variables for the properties.
The problem I'm having is that the Ensure-AppPool has some properties that are required to be certain types, TimeSpan, Int, etc. so when I try to use it, it fails.
I could not find any documentation about declaring variable types in Otterscript, is there some way to do this? If so can I also do it in the Template area where you can set the Required parameters?Thanks
Product: BuildMaster
Version: 5.3.6 -
RE: MSBuild failing
I did what you asked but it's just showing what I already have shown you which is the properties and settings I pass in.
From what I can tell is it looks like it's the WORKSPACE property that I need to set which is assigned your WorkingDirectory variable and it appears you put a trailing slash.Here's the extra output from it:
CodeMSBuildToolsPath: C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Process: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe
Arguments: "/logger:D:\InedoAgent\BuildMaster\ExtensionsTemp\WindowsSDK\BmBuildLogger.dll"
/noconsolelogger "D:\InedoAgent\BuildMaster\Temp_E2071_D1016\Sci\Framework\Service\Sm\Scheduling\Api\SchedulingServer\Sci.Framework.Service.Sm.Scheduling.Api.SchedulingServer.csproj"
"/p:Configuration=Release;DeployOnBuild=true;PublishProfile=Build_Deploy_Release;VisualStudioVersion=11.0;WORKSPACE=D:\InedoAgent\BuildMaster\Temp_E2071_D1016"
/t:rebuild /m:8
Working directory: D:\InedoAgent\BuildMaster\Temp_E2071_D1016\Sci\Framework\Service\Sm\Scheduling\Api\SchedulingServerI'll try adding a piece of script prior to calling MSbuild here to strip out that trailing slash on WorkingDirectory.
-
RE: MSBuild failing
Another thing about this, if you look at the error it's having a problem setting an output path yet I never set the output path I've left it to the Projects settings for it's output path.
The code you pointed me to is supposed to allow no output path yet somehow you're still trying to put one.
With MSBuild you do not have to set an output path when building solutions or projects and usually the projects will have Relative paths for output which should be used as the default if an output dir is not indicated. -
RE: MSBuild failing
Alana,
this exact same project worked under BM 4 and I take the exact properties, etc. and run it via MSBuild 4, which is what BM is using here, it all works.
So it seems it was something changed between 4 and 5. For example the way you have us put in everything in the UI was changed so you must have changed how you process the properties and other settings.
You can see right in the error what it's passing and the problem it says is some extra slash, yet as you can see in what I'm entering there are no slashes other than the path statement. -
MSBuild failing
So far the other projects I've been building with 5.x have not had extra properties being set so they have been building fine.
Now I've converted another project to 5 and the MSBuild action, using the new one, fails with this strange error. This project has several properties that are passed in.
Nothing in this project has changed and none of the properties have changed, the only change is converting to BM 5.Here is the piece of Otter Script, note all the variables shown have the correct values:
Code with timeout = 240 { Build-Project $WorkingDirectory\Sci\Framework\Service\Sm\Scheduling\Api\SchedulingServer\Sci.Framework.Service.Sm.Scheduling.Api.SchedulingServer.csproj ( Configuration: Release, Platform: AnyCPU, MSBuildProperties: DeployOnBuild=true;PublishProfile=$RelPublishProfile;VisualStudioVersion=11.0;WORKSPACE=$WorkingDirectory, Arguments: /m:$BUILD_PROCESSES /nologo /t:rebuild ); }and here is the Error info:
Error: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(340,29): error MSB4115: The "HasTrailingSlash" function only accepts a scalar value, but its argument "$(IntermediateOutputPath)" evaluates to "obj\Release;Platform=AnyCPU;DeployOnBuild=true;PublishProfile=Build_Deploy_Release;VisualStudioVersion=11.0;WORKSPACE=D:\InedoAgent\BuildMaster\Temp_E2046_D1016" /m:16 /nologo /t:rebuild" which is not a scalar value.
I tried changing all the properties to be /p: without the semicolons but that failed the exact same way. Something about the way it's combining all the info and passing to MSBuild doesn't seem to be working correctly.
Product: BuildMaster
Version: 5.3.6 -
Global Templates
I know how to call the Template with arguments but how do I make variables required in the template? I tried to find some documentation on this but didn't find anything.
Product: BuildMaster
Version: 5.3.3 -
RE: No MSBuild Script action in new Plans
Ok. How is it expecting properties to be passed in the Properties field?
I've tried key value pairs separated by spaces and I've tried semi-colon's but neither seems to work and instead my script just complains about the values not being set.For now I'm moving them to the arguments section so I can get this working.
-
No MSBuild Script action in new Plans
I am wanting to execute a MSBuild script, not build a project or solution but just run a msbuild script, and the MSBuild Script action no longer exists.
Just wondering if that is supposed to exist and will be added back?Product: BuildMaster
Version: 5.3.3 -
Is there a way to set a runtime variable to be usable in another scope
I'm setting a variable I want to use in the entire plan but the variable is set by reading in the value from a file. Is there a way to set it as a plan wide variable?
Product: BuildMaster
Version: 5.3.1 -
RE: When will we be getting IIS and Windows missing functions?
Alana,
I knew they are in the legacy side but I couldn't find a easy way to find/use them if I'm creating a new plan but I didn't think of creating a new legacy one then converting it later (firm smack to my forehead!)Thanks!
-
When will we be getting IIS and Windows missing functions?
Just wondering when we can expect all the missing IIS and Windows functions that are supposed to be in 5 of Buildmaster?
Things like Ensure-AppPool, Ensure-website, Ensure-service, etc.Considering the push to move to 5 and then not having those functions available even in their old form in the initial release I would have expected them by now.
Thanks.
Product: BuildMaster
Version: 5.2.3 -
RE: What happened to the Deployment feed type?
Sorry for a late follow up on this.
So one place where this solution falls apart is that your Jenkins add-on for BuildMaster does not support the meta-tags in the version field. -
Converting plan and getting Method not Implemented error
I'm trying to convert a legacy plan and after clicking the Convert option I get this error, it looks like it's saying the Predicate settings are not implemented is this correct?
[NotImplementedException: The method or operation is not implemented.]
Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PredicateImporter.Convert(ExecutionStatusPredicate predicate) +39
System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +633
Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PredicateImporter.ConvertPredicate(PredicateBase predicate) +415
System.Linq.WhereSelectArrayIterator2.MoveNext() +80 System.Linq.Buffer1..ctor(IEnumerable1 source) +153 System.Linq.Enumerable.ToArray(IEnumerable1 source) +106
Inedo.ExecutionEngine.Collections.ReadOnlyArray1..ctor(IEnumerable1 source) +397
Inedo.ExecutionEngine.OrPredicate..ctor(IEnumerable1 predicates) +54 Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PredicateImporter.Convert(OrGroupPredicate predicate) +208 System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +633 Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PredicateImporter.ConvertPredicate(PredicateBase predicate) +415 System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +633 Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PredicateImporter.ConvertPredicate(PredicateBase predicate) +415 Inedo.BuildMaster.Extensibility.LegacyPlanImporter.<ImportActionGroup>d__9.MoveNext() +1385 System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable`1 collection) +462
Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PlanImporter.ImportPlanInternal(Int32 planId) +951
Inedo.BuildMaster.Extensibility.LegacyPlanImporter.PlanImporter.ImportPlan(Int32 planId) +63
Inedo.BuildMaster.Web.WebApplication.Pages.Plans.ConvertPlanToOtterScriptPage.CreateChildControls() +69
Inedo.Web.PageFree.SimplePageBase.ProcessRequest(HttpContext context) +83
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +508
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92Product: BuildMaster
Version: 5.2.1 -
RE: What happened to the Deployment feed type?
Thanks, but what about the versioning of Universal feeds? Why restrict that to 3 places?
-
What happened to the Deployment feed type?
Did you remove the Deployment type feeds? I'm not sure where it disappeared but it seems to be in 4.x, I only don't know as I hadn't tried to create a new one until now.
I know there is the Universal Feed but it is not implemented in the same way so in the current form it isn't useful for Deployment storage.
If that was the intent of the Universal Feed then you need to allow versions to include build numbers.
For our environment we need to store multiple versions of even builds, not for very long but we generally keep 5-10 builds. Now with the Universal feed type we cannot.We already have two Deployment feeds that continue to work as you had first implemented so I'm not sure why we can't continue to create new ones.
Thanks,
JonProduct: ProGet
Version: 4.1.1 -
Config files-variables not being replaced when deployed
I am trying to use the Configuration file management but it doesn't seem to be working.
I have my config file in place and I have a couple of values that are based on variables but when I deploy it none of the values get replaced.
Is there something else I am supposed to do? I noticed the older version used to have a flag to enable the variables to be replaced but there is no option for this anymore.Also, I initially thought that was what the templates were for but that didn't work like I thought either.
Could you point me to something that shows a good example of using the config files and the templates or explain the usage a bit better.Thanks,
JonProduct: BuildMaster
Version: 4.9.5 -
RE: How to view Attached Reports
update, I have found that after I have Deployed the app to our Development plan I can now see the links to the reports on the that build page.
However they do not show under the Build plans results page which is where I would also expect them to appear.
Still nothing showing on the applications Overview page either. -
Variables not being transformed
I have a bunch of Application variables that I want to use during deployment so I've set them for Execution, is this not the correct setting?
The only options I have are Release, Build and Execution. I have some in the Build area that do work as well.
These are variables that contain other variables, like:webpath = $basepath$sitename
where the $basepath is a server or environment set variable and $sitename is set in the Application varibles as well.
Product: BuildMaster
Version: 4.9.5