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!

    Jenkins extension

    Scheduled Pinned Locked Moved Support
    jenkinsbuildmaster
    10 Posts 1 Posters 16 Views
    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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I tried to configure jenkins extension.
      the jenkins is on the same aws ec2 instance with the build master.
      i created a user in Jenkins, gave him all the permission, took the api code from the jenkins user managment and put http://localhost:8080 (this is indeed the jenkins URL) and every time i try to create build step i get error 403 (forbidden) alert.
      what can be the problem? what am i missing?
      Thanks.

      Product: BuildMaster
      Version: 4.7.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Can you verify that the extension configuration profile you created is checked as "use this profile as the default"?

        Once you've verified that, what happens if you browse to an API URL directly in your browser, entering the same credentials?

        Example API URL: http://localhost:8080/view/All/api/xml

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          I get XML view about the details of my jenkins.

          Another thing, when i gave Anonymous user the permissions and put its name on the username field, it worked.
          Something about the username / API Token combination i can't understand.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            I should double check, when you checked the API URL, were you logged in as yourself? Make sure you open up a private browsing session when testing access. If you can access it that way, there's no reason that BuildMaster should not either... it just makes a web request to that URL.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              What token does it use?
              i've turned on Incognito and i wasn't logged in and this URL still gave me all the details about the server.

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                It uses the anonymous user, so if you still have permissions for that enabled it will work without credentials.

                1 Reply Last reply Reply Quote 0
                • ? This user is from outside of this forum
                  Guest
                  last edited by

                  Right, silly me :)

                  so ilogged in with the user i wanted to put on buildmaster, and yet, same result.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    When you say same result, do you mean you get a 403 or that it works in the browser?

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      Works.

                      It seems like that something in the combination of username and API token doesn't come up right.

                      1 Reply Last reply Reply Quote 0
                      • ? This user is from outside of this forum
                        Guest
                        last edited by

                        Hm, anything is possible, but I have seen a custom API endpoint causing problems, and a one without privileges set for an API key.

                        Perhaps you can explore the code a little, to see what might be an issue? It's basically just simple HTTP calls to various URLS using Basic HTTP authentication:

                        https://github.com/Inedo/bmx-jenkins/blob/master/JenkinsClient.cs

                        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