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