Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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!

    [OTTER]Gitlab Secure Ressource gone

    Scheduled Pinned Locked Moved Support
    13 Posts 3 Posters 33 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      philippe.camelio_3885 @philippe.camelio_3885
      last edited by

      @philippe-camelio_3885

      Small question, why don't you use the same extension for both Otter and BM ?

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @philippe.camelio_3885
        last edited by

        Hi @philippe-camelio_3885 ,

        In BuildMaster 2022, we redesigned the Git and Source Control experience, which required significant changes to the various Git extensions (Git, GitHub, GitLab, and AzureDevOps).

        With these changes, instead of using service-specific operations like GitHub::Get-Source, you can simply use operations like Git::Checkout-Code. Behind the scenes, BuildMaster wires everything up using build variables like $Repository and $Commit.

        In Otter, you'll need to specify those variables or To and BranchOrCommit properties, similar to this:

        Git::Checkout-Code
        (
            To: $DossierVisHab,
            From: gitlab-vishab
            BranchOrCommit: master,
         );
        

        The extensions are indeed the same between BuildMAster and Otter, but they do different things than before. Now, the GitLab extension mostly just provides integration into Issue Tracking, and information intended for the BuildMaster UI, such as a list of organizations, repositories, etc.

        Best,
        Alana

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          philippe.camelio_3885 @atripp
          last edited by

          @atripp said in [OTTER]Gitlab Secure Ressource gone:

          Git::Checkout-Code
          (
          To: $DossierVisHab,
          From: gitlab-vishab,
          BranchOrCommit: master
          );

          Thanks for the explanation.
          I made a new test with your suggestion but I still have the same error message.

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @philippe.camelio_3885
            last edited by

            Hi @philippe-camelio_3885,

            Without looking closer or testing it's hard to say, but that error sounds like the property isn't being set? You can see rom the the source code of Git::Checkout-Code, the BranchOrCommit argument (called Objectish in the code) will use DefaultValue of $commit unless a property is specified .

            I guess just as a test, does set $commit = master make any difference?

            Thanks,
            Alana

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              philippe.camelio_3885 @atripp
              last edited by

              Hello @atripp

              New error :
              92af092a-dc3c-47d9-bb9c-435557344a62-image.png
              Code:

               Vishab
              {
                  set $DossierVisHab = c:\maestro\scripts\powershell\vishab;
              
                  set $commit = master;
                 
                  Ensure-Directory $DossierVisHab;
              
              Git::Checkout-Code
              (
                  To: $DossierVisHab,
                  From: gitlab-vishab,
                  BranchOrCommit: master,
               );
              }
              

              I really like Otter, but with each major version too many functions change or broken, it's frustrating 😥

              Migration is a lot of work, we have to retest every otter script we have done.

              Best regards
              PhilippeC.

              apxltdA atrippA 2 Replies Last reply Reply Quote 0
              • apxltdA Offline
                apxltd inedo-engineer @philippe.camelio_3885
                last edited by

                Hi @philippe-camelio_3885 ,

                We'll investigate/fix this via OT-507 in an upcoming Otter release. I suspect it's related to the SDK changes that came out of BuildMaster 2023; we do not test Git with Otter, so it's not surprising it doesn't work.

                I really like Otter, but with each major version too many functions change or broken, it's frustrating 😥

                Yeah same here; unfortunately we're struggling with "product market fit" so the product is going through changes and

                The first versions (v1/v2) were designed as an improvement on the "desired state" concepts from Puppet, Chef, DCS, etc. But the whole "Infrastructure as Code" market never really "took" on Windows. And obviously "no one" uses IaC on Linux anymore thanks to Docker.

                In the next versions (v3), we repositioned Otter to be "PowerShell job/script runner" and "compliance as code". This is how most customers used the product, so it seemed like there was a market there. That broke a lot of DSC stuff that hardly anyone used (sadly!)

                Very open to ideas on where to take Otter; I think security/compliance monitoring is maybe the right direction, but if that's the case, we need to figure out how to get a lot more pre-built code/scripts in Otter.

                Founder and CEO, Inedo

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  philippe.camelio_3885 @apxltd
                  last edited by

                  Hi @apxltd
                  Thanks for the answer.
                  Please, don't give up Otter, it is the most efficient and simple tool to manage scripts from a single point for both Windows and Linux.

                  Best regards
                  PhilippeC.

                  apxltdA 1 Reply Last reply Reply Quote 0
                  • apxltdA Offline
                    apxltd inedo-engineer @philippe.camelio_3885
                    last edited by

                    @philippe-camelio_3885 thank you, I appreciate that! No plans to give up -- it's a passion of mine, and I feel someday we'll figure out a better product marketing fit :)

                    Founder and CEO, Inedo

                    1 Reply Last reply Reply Quote 0
                    • atrippA Offline
                      atripp inedo-engineer @philippe.camelio_3885
                      last edited by

                      Hi @philippe-camelio_3885 ,

                      FYI - I was able to reproduce and fix this, at least the resource resolution portion.

                      Unfortunately you will still need to have a variable named $Commit and $Repository, but that's a much more complex problem to solve....

                      This works:

                      set $Commit = gitlab-vishab;
                      set $Repository = mast;
                      Git::Checkout-Code;
                      

                      Or you could also just set a system-scoped vairalbe with the same name.

                      This will go in next maintennce release of Otter, which is scheduled May 31, but we can make a pre-release if you'd like.

                      P 1 Reply Last reply Reply Quote 0
                      • P Offline
                        philippe.camelio_3885 @atripp
                        last edited by

                        @atripp
                        Thank you for your time and the fix.
                        I can wait for the next release.

                        Best regards
                        PhilippeC.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation