Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. powershell
    Log in to post

    • curtis.denotter_1361

      "Unable to resolve package source" when registering PowerShell repository
      Support • proget powershell • • curtis.denotter_1361  

      4
      0
      Votes
      4
      Posts
      23
      Views

      V

      @curtis-denotter_1361 Were you able to resolve this? If so, what was the root cause?
    • C

      Powershell private repo fails with 401
      Support • proget powershell • • chris_5235  

      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!
    • A

      Running Otter plan from Romp Install command line
      Support • otter powershell command line romp sqlplus • • ash.schaefer_6497  

      4
      0
      Votes
      4
      Posts
      37
      Views

      gdivis

      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 • • mponsot  

      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
    • J

      Limit Debug info logging from Powershell scritpts
      Support • buildmaster powershell • • jstarbird_7831  

      6
      0
      Votes
      6
      Posts
      27
      Views

      jjones

      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 • • mponsot  

      3
      0
      Votes
      3
      Posts
      16
      Views

      jrasch

      Typically this is caused by a Windows extension that hasn't been updated to the latest version following a BuildMaster v6 upgrade.
    • J

      Proper way to use $PSEval with boolean operations?
      Support • buildmaster powershell • • jharbison  

      2
      0
      Votes
      2
      Posts
      11
      Views

      jrasch

      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 • • mponsot  

      2
      0
      Votes
      2
      Posts
      31
      Views

      apxltd

      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 • • mponsot  

      2
      0
      Votes
      2
      Posts
      22
      Views

      jrasch

      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
    • ?

      Proget keeps mangling NuGet package version numbers!
      Support • buildmaster nuget powershell • • mponsot  

      9
      0
      Votes
      9
      Posts
      86
      Views

      S

      The root of the issue is the NuGet team's decision to force SemVer: https://github.com/NuGet/Home/issues/3050
    • ?

      [ProGet 5.1.17 (Build 4) Linux] A Powershell package gets a wrong version number when pulled from PS Gallery, if published from a machine, cannot be installed, seems corrupt
      Support • proget powershell linux • • mponsot  

      4
      0
      Votes
      4
      Posts
      24
      Views

      apxltd

      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
    • ?

      How do I trigger a build success or fail in jenkins based on a Release failing or succeeding
      Support • buildmaster powershell jenkins • • mponsot  

      3
      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!
    • T

      Installation Instructions for packages in PowerShell feed seem to be broken
      Support • proget powershell • • testera_3051  

      5
      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.
    • T

      How to populate installation instructions for PowerShell modules
      Support • proget feeds powershell microsoft • • testera_3051  

      2
      0
      Votes
      2
      Posts
      15
      Views

      T

      These will be included in the next maintenance release as per this issue: PG-1406
    • ?

      PowerShell connector failing to pull from PowerShell Gallery
      Support • proget powershell connectors • • mponsot  

      6
      0
      Votes
      6
      Posts
      55
      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 • • mponsot  

      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.
    • ?

      How do I edit or add installation instructions on the details table with chocolately and powershell packages?
      Support • proget powershell documentation • • mponsot  

      1
      0
      Votes
      1
      Posts
      9
      Views

      No one has replied

    • E

      Invoke-Expression from global PowerShell script
      Support • buildmaster powershell • • evs21_7577  

      2
      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.
    • ?

      Deploying Packages from ProGet with Powershell Packetmanager
      Support • proget nuget packages powershell • • mponsot  

      4
      0
      Votes
      4
      Posts
      95
      Views

      atripp

      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.
    • ?

      Jenkins plugin, upload a powershell module doesn't work
      Support • proget powershell jenkins • • mponsot  

      2
      0
      Votes
      2
      Posts
      22
      Views

      atripp

      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.
    • 1
    • 2
    • 3
    • 1 / 3