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!

  • 0 Votes
    4 Posts
    29 Views
    V
    @curtis-denotter_1361 Were you able to resolve this? If so, what was the root cause?
  • Powershell private repo fails with 401

    Support powershell proget
    5
    0 Votes
    5 Posts
    22 Views
    C
    @atripp Thanks for the pointers. Investigations did indeed reveal that proget was replying with the http url if FindPackagesById() request and that the subsequent redirect back to https was causing the credential to be dropped from the request. I've configured the BaseUrl with advanced settings and confirmed success with that in place. I now have a functioning proget instance and I'm able to efficiently work with the repo from Powershell. Much appreciated!
  • 0 Votes
    4 Posts
    37 Views
    gdivisG
    I'll see if we can get a new version built that includes an option to output the full log to the console after a job completes. In the meantime, you could call romp with a simple batch script like: romp install %1 romp jobs logs Then invoke it with: romp.bat <packageName> Let me know if that's helpful!
  • False and True as string

    Support otter powershell
    7
    0 Votes
    7 Posts
    39 Views
    T
    Thanks Philipe; all operation documentation is automatically updated within the software once the latest version of the relevant extension is installed (i.e. the Windows extension in this case). The documentation on the website will also get updated with any minor version of the software is released, or the Inedo.SDK is updated. Hope this helps, -Tod
  • 0 Votes
    6 Posts
    27 Views
    jjonesJ
    Jon, I haven't found too much on this besides what we already recommended. I did find this option specifically for Import-module : https://stackoverflow.com/a/28512164
  • PowerShell execution error

    Support buildmaster powershell
    3
    0 Votes
    3 Posts
    16 Views
    jraschJ
    Typically this is caused by a Windows extension that hasn't been updated to the latest version following a BuildMaster v6 upgrade.
  • 0 Votes
    2 Posts
    11 Views
    jraschJ
    The problem is that OtterScript attempts to parse those variables first. Just use quotes: set $foo = true; set $bar = true; set $foobar = $PSEval("$foo -and $bar"); Log-Information `$foobar = $foobar; # prints: $foobar = True
  • PSCall and OutputAtgument

    Support otter powershell
    2
    0 Votes
    2 Posts
    32 Views
    apxltdA
    I'm just following up to see if you were ever able to work-past this, or if it's still an issue?
  • Ensure-DSCConfig

    Support otter powershell
    2
    0 Votes
    2 Posts
    22 Views
    jraschJ
    Apologies for the delay, I had to reach out to gather this information. What I learned was that this was a custom operation. Below is the link to its source: Yes, I made that operation to accommodate DSC Configuration scripts (multiple DSC operations encapsulated in a PowerShell script). I had built this on a fork of of inedox-windows. I just merged in the latest changes for the main master (it has been 6 months, so there quite a few changes). I have built it, but have not tested it since the merge. https://github.com/MarkRobertJohnson/inedox-windows/blob/dsc-ensure-config/Windows/InedoExtension/Operations/EnsurePSDscScriptOperation.cs
  • 0 Votes
    9 Posts
    87 Views
    S
    The root of the issue is the NuGet team's decision to force SemVer: https://github.com/NuGet/Home/issues/3050
  • 0 Votes
    4 Posts
    25 Views
    apxltdA
    This is also being discussed here; long story short, this is a bug in Microsoft's PowerShell Gallery (and in the packages) in that they have two conflicting version numbers, and sometimes one is used, sometimes the other is used. The docs have been updated for now: https://github.com/Inedo/inedo-docs/commit/10c42c3ad546ac2feb4748b7736db06567c7a6d6
  • 0 Votes
    3 Posts
    22 Views
    ?
    I ended up using powershell to add variables to a properties file of env.properties. Then used the "inject environment variables" post build step to add the file with those variables to by environment. #Powershell "APP_VERSION=$appVersion RELEASE_NUMBER_VAR=$releaseNumber IIS_APP_ROOT_NAME=$iisAppRootName APP_EMAIL=$appEmail" | Out-File env.properties -Encoding ASCII Then then used the Get-Release API to check and see if my selected release was a valid release. If not I created it with the Create-Release API. Then used the Inedo_BuildMaster Plugin for jenkins. Create BuildMaster Package - Post Build Step Variables: appEmail = ${APP_EMAIL} appVersion = ${APP_VERSION} buildNumber = ${BUILD_NUMBER} buildType = ${BuildTypeParam} iisAppRootName = ${IIS_APP_ROOT_NAME} iisHostNamePrefix = ${BuildTypeParam} After I figured out myself how to inject the Variables and use them properly this rout was much better because it let me know when the package was done deploying, if it failed, showed me the deployment log on failure and failed my Jenkins Job on Failure. Thank you for your answer though Josh!
  • 0 Votes
    5 Posts
    18 Views
    T
    Thanks John, that's good news! I'll check back next week and try the latest build. Cheers.
  • 0 Votes
    2 Posts
    15 Views
    T
    These will be included in the next maintenance release as per this issue: PG-1406
  • 0 Votes
    6 Posts
    56 Views
    ?
    Hi Alana, Thanks so much for the update and the workaround solution. I'll be sure to upvote the linked issue. Best, Michael
  • PowerShell feed for modules & scripts

    Support proget powershell
    3
    0 Votes
    3 Posts
    38 Views
    ?
    My workaround for supporting scripts and modules is to essentially trick it. either specify the source and script source with the fqdn version of the url and then a shortversion of the url or, what I do, set up a iis front end for redirect urls. i.e. if your server name was repos and your domain was mycompany.com then you might set source to repos.mycompany.com:8624/nuget/myrepo and set script source to repos:8624/nuget/myrepo You can list and publish scripts or modules to the same repo and find-script will differentiate from within the repo. The more elegant solution, but more difficult, is to create a dummy website with real or virtual paths that use http redirects to the right sight. So you could set your source to something like repos.mycompany.com/source and that folder would redirect to the path on the different port. That's just a quick summary of the workaround, I realize that, I can provide more thorough examples if you would like.
  • 0 Votes
    1 Posts
    9 Views
    No one has replied
  • 0 Votes
    2 Posts
    132 Views
    G
    Are you sure you're using the right server context when calling the BuildMaster Powershell Asset? If you print out the server name in your asset using $env:computername do you get back the expected server? If I create a simple plan ##AH:UseTextMode for server $MyServer { PSCall GLOBAL::Test_Powershell_Asset; } Where my powershell asset is defined as this one-liner Invoke-Expression C:\Path\To\PowerShell\script.ps1 Then I am able to run this script, no problem.
  • 0 Votes
    4 Posts
    95 Views
    atrippA
    I'm not too familiar with how OneGet fits into all this; you'd really be better asking this question at the Chocolatey or OneGet forum. You'll still use ProGet to host the packages, but I'm really not sure which client tool (choco, etc) will do the download and install on a desktop.
  • 0 Votes
    2 Posts
    23 Views
    atrippA
    The Jenkisn Plugin can only be used to upload Universal Pakages to a Universal Feed. You'll need to use Powershell-Publishmodule command to publish to ProGet.