No, neither method works, -verbose:$false nor Out-Null.
It does seem to work with some commands but import-module specifically it does not.
Posts made by jstarbird_7831
-
RE: Limit Debug info logging from Powershell scritpts
-
RE: Limit Debug info logging from Powershell scritpts
No, i'm not using the -verbose flag and I did try:
import-module modulename 1>$null which does work outside BuildMaster.
I did not try piping to Out-Null so I'll try that.
I'll also try the -verbose:$false even though I'm not implicitly calling it. -
Limit Debug info logging from Powershell scritpts
When running any Powershell scripts where an Import of a module occurs the BuildMaster execution will output the entire loading of each cmdlet from the import step.
I'm wondering if there is someway to suppress this at the script level and if not there then a way to do so globally?
At times this can add thousands of lines to the logs and unless you are debugging the import it's useless data.
I know you can un-check the Debug option when viewing the log but that turns it off for everything. I just want to make it so the Powershell scripts do not log this extra data at least not unless I need it to.Product: BuildMaster
Version: 6.1.1 -
Unable to authenticate to Proget
I am experimenting with executing a romp package in Docker but when I do the Install I cannot get it to authenticate with Proget. I've tried username/password combo and API key but it just keeps giving me a 401 unauthorized.
I've even setup Docker service to run as a specific user in case that mattered in hopes it would just use that user.We do have our Proget server setup for Window authentication since it goes thru our AD server. So the question is, is this possible?
I've also tried setting up some powershell in docker to download the package using invoke-webrequest but I hit the exact same issue there as well.Product: Romp
Version: 2.0.2 -
GIT unable to get source
I hadn't use Git from BuildMaster prior to now. The source is actually on BitBucket and all Git commands should work fine.
However, after configuring the credentials and adding to a plan I get an error that it cannot find the host which then lists out the URL as https://username:password@bitbucket.org/company/repo.git . Which contains all valid values.
I tried SSH as well but that fails with permission issue which doesn't make sense either since the account I'm using has access and is used on one of Jenkins servers just fine.am I missing something?
Product: BuildMaster
Version: 6.1.1 -
Cancelling an execution just hangs
I have tried to cancel a pending execution and it will just hang with a message about it waiting for the it to complete because it cannot be cancelled.
Is there some list of what types of things can or cannot be cancelled?
What is it waiting for? The job doesn't run but also doesn't cancel.Product: BuildMaster
Version: 6.1.0 -
Unable to push package from BuildMaster to ProGet
BuildMaster 6.1.0 and Proget 5.1.9
I have credentials I had setup and have used before but after upgrading to 6.1.0 they do not seem to work.
When I try to use it I get access denied but the credentials I am using is an Admin user on Proget.
I noticed there is now an Inedo credentials option and so I created one for Proget, got an API key, etc. However, in the Push Package for Proget I cannot select that credential. If I forcefully type it in it say it's invalid.All I get in BuildMaster in the log is the following when I am using my older Proget credential, just a username/password:
The server returned an error (401): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>401 - Unauthorized: Access is denied due to invalid credentials.</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;} fieldset{padding:0 15px 10px 15px;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF; background-color:#555555;} #content{margin:0 0 0 2%;position:relative;} .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} --> </style> </head> <body> <div id="header"><h1>Server Error</h1></div> <div id="content"> <div class="content-container"><fieldset> <h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2> <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3> </fieldset></div> </div> </body> </html>
Should the new credentials be working? If not then why isn't the old one working?
Product: BuildMaster
Version: 6.1.0 -
RE: Error iterating list of strings
I've submitted a bug request for this and I also have a little bit more useful workaround.
The problem with the Try/Catch is handling real errors if you doing things within the loop of the list.The ListCount function still works here even if there is one value so i you have:
set $listcnt = $ListCount(@listvar); if $Compare($listcnt,>,1) { foreach ($litem in @listvar) { <perform some actions for each @listvar item> } } else { <perform some actions on the $listvar item> }
-
RE: Error iterating list of strings
I can easily have one value in an array in Powershell so not to sure what you're referring to there.
$test= @('onevalue') foreach ($val in $test) { $val }
Which will output the one value.
Anyway, I will try the suggestion for working around this issue.
-
Error iterating list of strings
I have a release template variable that is a list of string values. In my plan I am trying to iterate over it but I am getting a error that it is expecting an enumerable.
The variable is setup to allow multiple values to be selected and it has the values entered one per line.
I do use list vars elsewhere but this is the first time I've set one to allow multiple values to be selected and restrict it to the values of the list only.
In the case of my error I am only selecting one value.is there some special handling of this type that has to be done??
Product: BuildMaster
Version: 6.0.10 -
RE: Jenkins extension no longer working with jobs in folders
Thanks, it is working now.
-
RE: Jenkins extension no longer working with jobs in folders
Ben,
When I'm doing this there is no build going on. I do not have BM call Jenkins to launch a build but rather have Jenkins build and call BM to deploy. I have Jenkins calling over to BM to import a build. When I do that I am passing the build number and project name but BM cannot find the job.
I've also tried this manually from BM by Create Package and filling out the package variables.Thanks,
jon -
Jenkins extension no longer working with jobs in folders
I'm not sure when this stopped working as I didn't hit until I went back to an older app that uses it but it used to work.
However, I also am working on a new project which is using multi-branch building on Jenkins which also uses folders that represent the branch names as the job names and the Jenkins extension for BuildMaster cannot find the jobs.In jenkins the path to the job taking the URL is "https://buildserver/job/project/job/jobname/" so in BuildMaster this was set as project/job/jobname which used to work but now does not.
I've tried using just the project and also tried how Jenkins has it in the JOB_NAME variable in Jenkins, project\jobname , but those do not work either.Just wanted to check if this is indeed a bug or just a format change? If a format change could you please let me know what that new format should be.
Additional info:
Jenkins - 2.138.2
BuildMaster Jenkins extension - 1.0.1Product: BuildMaster
Version: 6.0.10 -
RE: Pushing to Docker feed
Alana,
I'm not trying to use integrated auth. Our Proget server is setup for it but when I'm attempting to push to the docker feed it simply will not accept a login.
So, I was asking if that should be working and also if the ability to use an API key was truly implemented as was stated in an older issue.Thanks.
-
Pushing to Docker feed
I'm trying to use a Docker feed but cannot get docker to log into the feed. I keep getting a 401 unauthorized.
I've tried several different accounts but it just never works.
Our Proget server is setup in IIS and I am using HTTPS and the base url in the Advanced settings is blank, the default. We do use integrated auth in IIS.I did see that there was a fix back in 5.1.3 to allow the use of an API key but I could not find any documentation about how to use that with the docker login command.
Are there some other requirements for the container feeds?
Product: ProGet
Version: 5.1.10 -
RE: Clear Cache / delete old packages
Hello Pedro,
I've tracked down the root cause of this issue. PG-1362 will be fixed in the next release of ProGet.
-
RE: Detect legacy features question
Alana,
thanks. I didn't realize those variables did not appear in that list, thought that was all variables.
In any event, knowing they are app settings variables helps.Thanks!
-
RE: Detect legacy features question
Are the Id's listed supposed to match the Variable Id? I'm referring the number values not the string values.
When I view the Global Variables area should they be in a Legacy Variables list? I do see variables there but do not see any Legacy list. -
RE: Detect legacy features question
Alana,
are those in the Application | Settings? If so then I do know where they are now.
I've used those in almost every application. -
Detect legacy features question
I've been working to clean up legacy items and I am confused by one aspect.
In the report it is saying i have legacy template variables but when I view the Variables page in the admin it is not indicating any legacy variables.So just wanting to clarify what is it this is complaining about?
The main variables I have are release templates and pipeline and while the variable names listed are some I have the log listing the legacy variables is not clear where they are.
Product: BuildMaster
Version: 6.0.10 -
RE: Is there a way to Delete a Project
Just wanted to let you know I reinstalled 1.0.3, having another issue with updating that is reported elsewhere, and I still cannot see any option for Project Settings.
Is there any kind of Db flag that could be not getting set? -
RE: Is there a way to Delete a Project
I do not see that option at all.
I've selected a project, go to the admin menu like you show and mine just shows Administration, infrastructure, Executions, Resource Credentials, Extensions and All Settings. No Project Settings at all. -
RE: Is there a way to Delete a Project
Not able to view image, just shows the no image web graphic.
-
RE: Is there a way to Delete a Project
The only thing I have for Projects is the Dropdown to select a project and no project settings anywhere.
When I go into a project it has no settings. I can create a plan, etc., but there are no settings option for the project itself.
In the Administration page there is nothing listed for Projects as an admin function. -
Is there a way to Delete a Project
I can't seem to find a way to Delete a Project, is there a way to do this?
Product: Hedgehog
Version: 1.0.3 -
Hedgehog Inedo Credentials usage
I created an Inedo credential for our Proget server but when I go to create a Package Source I cannot use the credential.
Shouldn't I be able to use that credential for a package source?Product: Hedgehog
Version: 1.0.3 -
RE: Error in Global Template not caught in local plan
I had seen that which is what I have setup.
I am more wondering if there is another function like Fail that would cause a Catch to occur.
I can add something like what you suggest but having some built in function would seem to be a more logical thing to have. -
Error in Global Template not caught in local plan
I have a Global template that I have a Log Error on which sets the ExecutionState to Error.
In the local App Plan that calls that template the call is in a Try/Catch block but when this template is executed and results in the state being Error it is not caught.
The overall execution state is set to Error it just is not caught by the try/catch.I know there is the Fail function but I want this to be Caught in the catch statement not just exit outright. Is there a way to do this? Is this a bug?
Seems like the try/catch in the parent plan should catch this as a error of the template.Product: BuildMaster
Version: 5.8.3 -
RE: Is there a way to Deploy previous release to a new stage
I found a solution. I had to change the pipeline to not restrict the order of the stages.
-
Is there a way to Deploy previous release to a new stage
I have a previous release that we wanted to push to a new stage that was added in the currently release.
is there a a way for me to do that?
When I look a the package from that earlier release I see the stages but they are grayed out and I cannot select them.Product: BuildMaster
Version: 5.8.3 -
BuildMaster Performance question
We have some legacy apps that I am deploying with BuildMaster and with how these apps are deployed for our staging area it means a very long deployment log.
This seems to slow BuildMaster, at least the UI, considerably.
Looking on the server it is not using a lot of memory so I was wondering if there was some way for me to make it utilize more memory?
Also, is there a way to have the Include Debug option for the log output to be unchecked by default?Thanks.
Product: BuildMaster
Version: 5.8.3 -
RE: Listener for Approval Needed not sending emails
Ben,
I didn't set it for any particular stage. Based on what you're saying though I think the issue was that didn't have the Listener in place when the app had completed the previous stage.
I assumed the email would only go out when the Stage the approval was attached to was initiated for deployment but it sounds like it would do so when the previous stage completes, is that correct? -
Listener for Approval Needed not sending emails
I have an app setup for an approval and setup a listener to email the person. When the deployment reached the Stage that needs the approval I scheduled the deployment but no email was ever sent to the user.
We send emails from the server all the time so it's not a setup issue for that.The user did see the approval needed when connected to the BuildMaster server and looked at My Approvals so just the email aspect didn't work.
The deployment was scheduled for immediate deployment once the approval was received.
Product: BuildMaster
Version: 5.8.3 -
RE: Replace Text in File with Regex not working
Tod,
understood. I did misuse that part, however, it does not like the .+ part even by itself.
What I am trying to do is allow for a line that could have any character type after the = sign. I'm just doing a lazy way of going thru an INI file that does not have any dupe key names.thanks
-
Replace Text in File with Regex not working
I've got the following:
Replace-Text ( Include: clist.txt, Directory: $filePath, SearchText: ^IDString=.+$, ReplaceWith: IDString=$newVal, Regex: true );
While I get no errors the file is not getting updated. I've tried several variations on the regex without success.
Product: BuildMaster
Version: 5.8.3 -
Question on Retention Policies
I want to clean-up builds within a Release but it is cumbersome to manually reject packages as we have a lot of separate applications being built.
Is there a way to configure the Retention Policy so that it can do the following:1- keep only the last n builds without having to mark them Rejected beforehand
2- keep any previously released versions data.For example, I have releases 1 - 5.0 that have shipped, and 6.0 that is now underway. I want to keep the 1 - 5 released data but while 6.0 is underway only keep the last 20 builds of it.
Product: BuildMaster
Version: 5.8.3 -
RE: Search db for all uses of a variable
Alex,
thanks. I don't want to update it via DB I am just going to be changing one and wanted to verify everyplace it's used before I made the change. -
Search db for all uses of a variable
What table(s) would I need to search to find where a variable is used? This is a variable declared in an Environment variables section.
Product: BuildMaster
Version: 5.8.3 -
Ensure App Pool for No Managed Code
I have a dotnet core app and that requires the app pool be set to No Managed Code for the .Net CLR version setting but the Ensure App Pool doesn't seem to accept that option.
The pool does get created but it will not work until I change the setting to something else like .Net 4, save and then reset it back to No Managed Code in IIS directly.Just wondering if this is indeed a bug with Ensure App Pool? Based on the docs it seems it is current expected behavior which should be changed to accept No Managed Code if that is the case.
Product: BuildMaster
Version: 5.8.1 -
RE: Proget feed access for anonymous not working
Thanks. We do have the Integrated Authentication enabled as most of our users are Windows users. So it sounds like that is the issue.
Beyond that I have it setup right now without any View/Download restrictions other than the allowing the Anonymous. -
RE: Proget feed access for anonymous not working
Couple of added info, we are on 4.8.6 if that matters. I accidentally picked the wrong version.
Also, I did add Anonymous User with View/Download but it still fails. -
Proget feed access for anonymous not working
We are using LDAP, now legacy, and I have the View/Download setup with No Restrictions and No Permission settings. Under the Built-in account management Anonymous is still set to View/Download.
I have several users doing dev on MAC systems using VS on them and anonymous access is not working for them.
This is the case for others on Windows as well, basically everyone has to login even though I have the feeds unrestricted.
Is this expected? How would I make this work?Product: ProGet
Version: 4.8.7 -
RE: Pipeline fork - multiple customers
I have a similar situation.
For us we setup a db that I query from the executing plan to establish which customers can be upgraded/installed during a deployment per server in a role within the environment/stage.
What this doesn't solve for us is being able to automate that fully. We can for the first time it is deployed but subsequent runs have to be started manually. At least until BuildMaster will allow you to schedule a Re-Deployment to a Stage via UI or via API calls.We then handle the approvals via a front-end to that db.
Another possible solution for you, you can create multiple Stages all within the one Environment. So you could have a Customer1 Stage, Customer2 Stage, etc. Each with their own approval rules, deployment Windows, pipeline variables, etc. This method really depends on how many customers you need to do this for, to many and your Pipeline will be a bit cumbersome.
-
RE: AcquiredServers not returning any values
I see what happened, I looked under Servers where I would have thought that info would be but instead it's under General in the docs.
-
RE: AcquiredServers not returning any values
Well I just got this from your documentation, which doesn't mention ServersInRole, http://inedo.com/support/documentation/buildmaster/reference/functions
I'll give that a shot though.
-
RE: AcquiredServers not returning any values
It appears @AcquiredServers function does not work at all.
I created a test role with no spaces and it still does not return any servers. -
AcquiredServers not returning any values
I am trying to get a list of servers from a specific role but when I use the AcquiredServers(rolename) I get nothing back even thought there are servers in the role.
The role name does contain spaces.Should this be working? Are the spaces an issue, if so anyway to work around it?
Product: BuildMaster
Version: 5.7.3 -
Recurring Release Package Trigger issue
I was attempting to set a app to use a Recurring Release Trigger and I set it to run once per day at 4am. Saved it, this was about 2pm, and it ran right away.
Am I missing something with this? Is this a bug?
I had to disable it because it's not doing what would be expected and now have to manually run the builds.Product: BuildMaster
Version: 5.7.3 -
RE: Powershell script works outside BuildMaster but not from BuildMaster
I should clarify my last post, it does a Return Select 0 only when it is successful.