Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. dean-houston
    3. Posts

    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!

    dean-houstonD Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 222
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Otterscript: Usage of Success exit code or EXEC operation - clarifications

      Hi @scusson_9923 ,

      Sorry, I misunderstood; I thought you were doing PSExec.

      In this case you are just executing the pwsh process, so you need to figure out how to have that process return an exit code.

      I don't know if that's the same as powershell.exe, but a AI told me "To return an error code from a PowerShell script, the exit statement followed by the desired error code should be used."

      So I guess exit -1 or something like that?

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Otterscript: Usage of Success exit code or EXEC operation - clarifications

      Hi @scusson_9923 ,

      Exec (or Execute-Process) runs an operating system process, so that's where the return code comes in.

      If you're doing something like a PSCall, then you can create output parameters/variables in the script, and then test those values.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Adding an ad-hoc deployment process to an existing application

      Hi mwatt_5816,

      BuildMaster does support "release-less" builds, though you may need to enable it under the application's Settings > Configure Build & Release Features > Set Release Usage to optional. That will allow you to create a build that's not associated with a release.

      It's also possible to do "ad-hoc" builds (i.e. builds with no pipeline), but we don't make it easy to do in the UI because it's almost always a mistake (once you already have pipelines configured). So in your case, I think you should create a secondary pipeline for this purpose.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: NPM Failed to fetch package tags

      Hi @procha_8465 ,

      I'm afraid we'll need a bit more information here to help you. There are a lot of changes between ProGet 5.2 and ProGet 2024 and between older/newer versions of the npm client.

      If you can put together a reproduction case, ideally on a new instance of ProGet 2024, that'll help us determine what you're trying to do and how to help.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Prometheus support?

      Hi @f-medini_8369,

      Here is our documentation on how to use Prometheus:
      https://docs.inedo.com/docs/installation/logging/installation-prometheus

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Using ProGet with TeamCity

      Hi @simon-marriott_1201,

      If you haven't seen it already, I'd check out How Files and Packages Work in ProGet for Artifactory Users.

      Long story short is, you should consider a more modern approach than the Maven-based file/folder that Artifactory uses. Many have found a lot of success with Universal Feeds & Packages.

      We don't maintain a TeamCity plugin, but it's really easy to create, publish, deploy packages using the pgutil command line (i.e. pgutil upack create); see HOWTO: Create Universal Packages

      Hope that helps!

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Connector to DevExpress Feed fails with Object reference not set to an instance of an object

      Hi @uwer_4638 ,

      The underlying issue is that you're making a "NuGet v2 API" request to your ProGet feed, which ProGet is then forwarding to connectors, and DevExpress does not support NuGet API V2.

      So, you'll need to track down whatever is making that request (perhaps you're using an old endpoint URL), or simply just disable the V2 API on your feed. This will cause an error on the client, and should show you pretty quickly what's making that outdated call.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Unable to upload files to asset directories

      @layfield_8963 great news, that was a really strange error. The UI upload uses some kind of chunking and file appending, so it sounds like that was it.

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Working Rafts_CreateOrUpdateRaftItem example for Otter

      Hi @scusson_9923,

      In this case, you'll likely want to select 5 as the type.

      For reference, here are the valid types:

          //
          // Summary:
          //     Specifies the type of a raft item.
          //
          // Remarks:
          //     All types except BinaryFile and TextFile are "regulated" and only allow well-known
          //     files; for example,
          public enum RaftItemType
          {
              //
              // Summary:
              //     A role configuration plan.
              RoleConfigurationScript = 1,
              //
              // Summary:
              //     [Uninclused] A Script with .otter syntax is prefered
              OrchestrationPlan = 2,
              //
              // Summary:
              //     [Uninclused] A Script with .otter syntax is prefered
              Module = 3,
              //
              // Summary:
              //     A script.
              Script = 4,
              //
              // Summary:
              //     An unclassified binary file.
              //
              // Remarks:
              //     BinaryFiles cannot be edited in a text editor, compared, etc; they are always
              //     treated as raw content
              BinaryFile = 5,
              //
              // Summary:
              //     A deployment plan.
              DeploymentScript = 6,
              //
              // Summary:
              //     An unclassified text file.
              //
              // Remarks:
              //     TextFiles can be edited in UI , may have lines replaced on deploy, and can be
              //     used as templates
              TextFile = 7,
              //
              // Summary:
              //     A pipeline.
              Pipeline = 8,
              //
              // Summary:
              //     [Uninclused] Feature is deprecated
              ReleaseTemplate = 9,
              //
              // Summary:
              //     A job template.
              JobTemplate = 10,
              //
              // Summary:
              //     Files used with build tools like Dockerfile.
              BuildFile = 11
          }
      

      I'm not sure if TextFile (7) will work; in Otter it was intended to be used as a text template, which means lines in it are replacement. You may need to play around and see what works.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Working Rafts_CreateOrUpdateRaftItem example for Otter

      Hi @scusson_9923 ,

      What is the file you are uploading? What happens when you upload through the UI?

      Can you share the PowerShell snippet you're using?

      What are you specifying for RaftItemType_Code?

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Aggregating 2 Feeds in ProGet Free Edition

      @kc_2466 the "invalid feed type" will come up if you have a connector or feed that was created in a newer version of ProGet that wasn't available in an older version of ProGet... and you downgraded to the older version.

      It looks like it's a connector, based on the URL. Easiest way to fix is to just upgrade, delete, downgrade

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Formatting issue on webpage for Cargo aggregate feed

      @kc_2466 thanks for the heads up, we'll target reviewing/fixing this for the following maintenance release (i.e. 2024.27 / Feb 21) via PG-2893

      posted in Support
      dean-houstonD
      dean-houston
    • RE: "Log scope Execution has already been completed" exception after OSCall

      Hi @jimbobmcgee ,

      Thanks for all the details; we plan to review/investigate this via OT-518 in an upcoming maintenance release, likely in the next few two-week cycles.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Proget: SCA Event Notifier not working

      Hi @caterina ,

      Looking over the code, I can see that; we will also fix that in the next maintenance release. The notifier should not be dispatched when there are 0 issues.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: WebApp folder not present

      @cooperje_6513 that error means that the Windows service account user does not have access to the SQL Server database; you'll want to grant NT AUTHORITY\NETWORK SERVICE access

      You can do this with SQL Server Management Studio, or a scritp like this should work:

        CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS WITH DEFAULT_DATABASE=[ProGet]
        CREATE USER [NT AUTHORITY\NETWORK SERVICE] FOR LOGIN [NT AUTHORITY\NETWORK SERVICE]
        ALTER USER [NT AUTHORITY\NETWORK SERVICE] WITH DEFAULT_SCHEMA=[dbo]
        ALTER ROLE [ProGetUser_Role] ADD MEMBER [NT AUTHORITY\NETWORK SERVICE]
      
      posted in Support
      dean-houstonD
      dean-houston
    • RE: Proget: SCA Event Notifier not working

      Hi @caterina ,

      I was able to find the issues; the correct value should be this:

      $ToJson(%(
          issues: @BuildIssues,
          buildNumber: $BuildNumber,
          releaseNumber: $BuildReleaseNumber,
          projectName: $BuildProjectName
      ))
      

      I've updated the documentation and also ProGet (via PG-2890), which will be in teh next maintenance release. But if you use the above template it should work.

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Suggestion: allow for setting list or map elements by dynamic index or key (@ListSet, %MapSet)

      @jimbobmcgee fantastic, we'll review/merge soon! thanks much :)

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Working Rafts_CreateOrUpdateRaftItem example for Otter

      Hi @scusson_9923 ,

      This seems to be an issue related to release vs debug builds (works fine locally, but not when deplyoed to server), and we'll investigate and fix via OT-517 in an upcoming maintenance release (2024.4) - not sure on the exact schedule, but we're targeting the next couple weeks

      -- Dean

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Suggestion: allow Execute-Powershell to return output stream and/or capture output variables

      @jimbobmcgee thanks; we'll definitely investigate this later, but it will likely not be for a few months until we can do some "heads down" time with this stuff

      Honestly I don't remember how any of this works, so I could be wrong and you need to do something else. It's clearly not something we document.

      Our primary use case is more like this, uploading basic scripts:
      https://docs.inedo.com/docs/otter/scripting-in-otter/otter-scripting-powershell

      posted in Support
      dean-houstonD
      dean-houston
    • RE: Suggestion: allow Execute-Powershell to return output stream and/or capture output variables

      @jimbobmcgee thanks for reposting this here as well!

      PSEval is definitely not meant for scripts like that, due to how the parsing works... but as you noticed, the $PSEval($ps) should work. We probably won't change this.

      PSExec (i.e. Execute-Powershell) can capture variables, but not output streams. So something like this:

      set $hello = world;
      $PSExec >>
        $hello = 'dears';
      >>;
      Log-Information Hello $hello;
      

      Similar to my comments on the PSEval thread, this is another one of those rabbitholes that can break stuff, since the existing behavior seems to work for some users. So we're super-cautious about it.

      It's likely we won't change these behaviors as they are "good enough" for the intended usecase of Otter.

      posted in Support
      dean-houstonD
      dean-houston
    • 1 / 1