No, neither method works, -verbose:$false nor Out-Null.
It does seem to work with some commands but import-module specifically it does not.
jstarbird_7831
@jstarbird_7831
Best posts made by jstarbird_7831
Latest 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