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!

    Release Templates - Need help for dynamic list to get branch from Gitlab CE

    Scheduled Pinned Locked Moved Support
    10 Posts 4 Posters 31 Views 2 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
      PhilippeC.
      last edited by

      Hello

      Everything is in the title.

      We have in a Gitlab on premise and I did not found how to make a dynamic list to be able to select the branch when I make a new release.

      Steps for a new release template

      • Select Dynamic List
      • Select GitLab Branches
      • Project Name : Gitlab-Portail (name of the resource)

      When I create a new release and I want to select the branch, I have the error msg:

      Error querying list source: Could not find resource "".
      

      The ressource is define at the application level.

      Any advice is welcome.

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

        There are two fields on a GitLab Branches List Variable Source

        • From GitHub resource ("ResourceName") should be the name of a Secure Resource, which defines your api url, project name, etc.

        • ProjectName is optional, and may override the project name

        Based on the message, I think, the resource name isn't filled out?

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

          Gitlab Branches only 1 parameter ...

          42bea1c0-b602-4ecb-a721-13ad34c659ee-image.png

          whereas GitHub Branches 2 ...

          c9c239e2-a5c6-471e-80a6-feafe29f758a-image.png

          Bug ?

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

            Oh my bad... yes it seems a bug. I looked at GitHub in the UI, anwyays I think it's fixed.

            Can you try the new pre-release version?

            You can manually install, or point your extensions feed (Advanced SEttigns) to to https://proget.inedo.com/upack/PrereleaseExtensions/

            https://proget.inedo.com/packages/overview?feedId=1&packageGroup=inedox&packageName=GitLab&packageVersion=1.7.6-RC.2

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

              😞

              Error querying list source: 404 Project Not Found
              

              After I installed the pre release extension, I assigned the Resource - Gitlab resource 😊
              1f88e35c-62cd-4000-b936-d463f9a1445e-image.png

              I used the project name from the resource which is defined at applicaiton level

              dd5e51e5-9406-4978-9895-e1b0a9bb5d8f-image.png

              And I have got the following message:

              Error querying list source: 404 Project Not Found
              

              Do I need to make some config on the gitlab side ?

              1 Reply Last reply Reply Quote 0
              • rhessingerR Offline
                rhessinger inedo-engineer
                last edited by

                Hi @philippe-camelio_3885,

                Does it work if you use a Secure Resource that exists at the application level instead of the global level?

                Thanks,
                Rich

                Products Engineer, Inedo

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

                  Hi Rich
                  Using the extension Gitlab 1.7.6-RC2, it is working as expected if the Secure Resource is defined at the application level.

                  Best Regards

                  Tested with Buildmaster 6.2.14

                  1 Reply Last reply Reply Quote 0
                  • rhessingerR Offline
                    rhessinger inedo-engineer
                    last edited by

                    Hi @philippe-camelio_3885,

                    Thanks for the information. Let me investigate this a little further on global resources.

                    Thanks,
                    Rich

                    Products Engineer, Inedo

                    1 Reply Last reply Reply Quote 0
                    • rhessingerR Offline
                      rhessinger inedo-engineer
                      last edited by

                      Hi @philippe-camelio_3885,

                      I did a little more testing internally and it looks like Global GitLab Secure Resources seems to work for me in 1.7.6-RC.2. I only have the ability currently to test with hosted GitLab. I'm guessing the API key you are using does not have access to that project to list branches and/or projects.

                      When you are creating the secure resource, can you add the Secure Credential then click on the application, and does it show a list of your GitLab projects?

                      Thanks,
                      Rich

                      Products Engineer, Inedo

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

                        Hi @rhessinger
                        I will be out of office for the next weeks.
                        I ll make the test when I come back
                        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