[JIRA] (JENKINS-57734) Unable to access GitLab APIs

6 views
Skip to first unread message

parichay.barpanda@gmail.com (JIRA)

unread,
May 29, 2019, 7:04:03 AM5/29/19
to jenkinsc...@googlegroups.com
Parichay Barpanda created an issue
 
Jenkins / Bug JENKINS-57734
Unable to access GitLab APIs
Issue Type: Bug Bug
Assignee: Parichay Barpanda
Components: gitlab-api-plugin, gitlab-branch-source-plugin
Created: 2019-05-29 11:03
Labels: gsoc-2019
Priority: Minor Minor
Reporter: Parichay Barpanda

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

parichay.barpanda@gmail.com (JIRA)

unread,
May 29, 2019, 9:57:02 AM5/29/19
to jenkinsc...@googlegroups.com
Parichay Barpanda started work on Bug JENKINS-57734
 
Change By: Parichay Barpanda
Status: Open In Progress

parichay.barpanda@gmail.com (JIRA)

unread,
May 29, 2019, 10:03:02 AM5/29/19
to jenkinsc...@googlegroups.com
Parichay Barpanda resolved as Fixed
 

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());}}

 

Change By: Parichay Barpanda
Status: In Progress Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages