Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57734

Unable to access GitLab APIs

    XMLWordPrintable

Details

    • GSoC 2019. Coding Phase 1

    Description

      Unable to access GitLab API classes with private access token or username/password credentials. Raised an issue in the GitLab API repository. Waiting for feedback from the repository author.

      Attachments

        Activity

          This issue was resolved in the issue thread on gitlab api repository. I was using the wrong server urls. In case of using the correct server url, the wrong method was called. To get the current user to verify that GitLab API has been correctly setup.

          GitLabApi gitLabApi = new GitLabApi("https://gitlab.com", "xxxx");
          {{ User currentUser = gitLabApi.getUserApi().getCurrentUser();}}
          {{ System.out.println(currentUser.getUsername());}}

           

          baymac Parichay Barpanda added a comment - This issue was resolved in the issue thread on gitlab api repository. I was using the wrong server urls. In case of using the correct server url, the wrong method was called. To get the current user to verify that GitLab API has been correctly setup. GitLabApi gitLabApi = new GitLabApi("https://gitlab.com", "xxxx"); {{ User currentUser = gitLabApi.getUserApi().getCurrentUser();}} {{ System.out.println(currentUser.getUsername());}}  

          People

            baymac Parichay Barpanda
            baymac Parichay Barpanda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: