Any way to do it in the meantime? And any ETA on that particular release?
Just have a deployment I need to do.
Posts made by jstarbird_7831
-
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:
Code
MSBuildToolsPath: 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.Buffer
1..ctor(IEnumerable1 source) +153 System.Linq.Enumerable.ToArray(IEnumerable
1 source) +106
Inedo.ExecutionEngine.Collections.ReadOnlyArray1..ctor(IEnumerable
1 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.List
1.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 -
RE: How to view Attached Reports
Nope. Nothing at all for the reports I attached. In the log it says it attached them and zipped them up and added them to the db.
I did try restarting the buildmaster service as well just to see if that made it work.Jon
-
How to view Attached Reports
For our Unit Tests I have to use OpenCover which there is not an extension for and so I have to use the Attach Reports action. That seems to work however I was expecting the build to have links to view the reports. Is there someway to have the reports viewable with the build they are for?
Jon
Product: BuildMaster
Version: 4.9.5 -
Publish Nuget not using URL from Configuration Profile
I've setup several Configuration Profiles under the Nuget extension(latest version) and am trying to use one but when the build runs and goes to push the package it uses Nuget's URL and not the one from my Configuration Profile.
Isn't it supposed to use the one from the Profile??Jon
Product: BuildMaster
Version: 4.9.5 -
RE: Trouble using Install Nuget package
I realized after my post that the extension in BuildMaster is using the Install method while I'm used to using the Restore method.
That said though I am pointing it directly at the packages.config file and it still can't see the packages.config file.
It's taking the value "For Projects In:" and using it for the SolutionDirectory but as I said our packages.config files do not exist there. So this just keeps failing.
Seems like you should add the Restore function to the extension and/or allow or more flexible options for the Install Nuget function.
For now I have to not use the extension.
-
Trouble using Install Nuget package
I'm trying to setup a build and using the Install Nuget action from the extension, latest version installed, and I cannot get it to properly get the packages.
First let me explain that our source is laid out like this:
/root/AllSolutions
/root/sourceFolderSo when we get the source out of source control it's in that same layout. This means that all the projects in the sourceFolder all expect the Packages folder to exist at the same level as the AllSolutions and SourceFolder.
So in the Install Nuget packages dialog I have been trying several different ways to try and get the packages to be installed but it keeps looking for the packages.config file to be with the solution file which it isn't, they are with each project file.
So I tried pointing to the folder of the project file, no use.
Just keeps failing to find the packages.config.I'm expecting this extension to work just like Nuget does, Install packages by pointing it a solution file but that doesn't seem to be the case here. It seems to be trying to add some other logic that only applies to a certain situation.
I know our setup is a bit odd but shouldn't me typing in full paths or variables with full paths in them override things?
Shouldn't it be looking for the packages.config files based on the project files in the solution file like regular Nuget does?Product: BuildMaster
Version: 4.9.5 -
RE: How do I access Windows environment variables within BuildMaster
Yeah I knew about that option. Just wanting to use the built in functions. Copying was just the simple one but there are a few others that it would be nice to be able to use them with as well.
Won't 5.0 have a way to access them? I seem to recall a way to do it, it might have been using PS to get the value and pass it back into BuildMaster but at least you could use it elsewhere in the deployment if needed rather than having to re-write functions whenever you wish to utilize one.
Grant it this may be a rare need, just an old app to support here.Thanks!
-
How do I access Windows environment variables within BuildMaster
I have some files that need to get copied to the Windows OS folder and then also register a DLL there. How can I use Windows environment variables instead of having to create new variables?
Product: BuildMaster
Version: 4.9.2 -
Is there away to import an entire file of values into a deployment process?
We have to deploy multiple instances, a lot of them, and we normally deal with the settings via a xml file with all the settings for the individual deployments.
Is there someway to do a mass import of values from a XML file to set variables to be used in a job?
Or a way to import Java property file types?
Or pull them from a database?I know there is the import value from file but frankly that is sort of useless when you have a file with several hundred settings in it.
Thanks,
JonProduct: BuildMaster
Version: 4.8.6 -
Powershell script in Script Repository - can I write to/create BuildMaster variable to use in another function?
I want to be able to set a BuildMaster variable value from a Powershell script that I can then use elsewhere in a non-Powershell function? This would all be within the same Deployment of course.
Product: BuildMaster
Version: 4.8.6 -
RE: Admin Password Reset is not working
All fixed and I finally realized what I was doing wrong the admin password, need to learn where my uppercase characters go in passwords!
Thanks,
Jon -
RE: Admin Password Reset is not working
How do I do that? I think that's probably our best bet now then.
-
Admin Password Reset is not working
We are on the Free version of 3.7.6 and recently started getting a Severe Error about the license but when I tried to login with any admin privileged account it wouldn't login.
Then I tried using the Admin password reset but that is also not working, it says it resets the password but still fails to login.
How to Reset your ProGet or Inedo Product Password
This is an old/archived forum post that you may have stumbled upon in search. You were probably looking for how to reset a password.
If you've gotten locked out of ProGet, please see the documentation to reset the admin password.