[JIRA] (JENKINS-58263) GitLabSCMFile cannot use api, needs heavy checkout

9 views
Skip to first unread message

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 3, 2019, 2:11:03 AM7/3/19
to jenkinsc...@googlegroups.com
Parichay Barpanda updated an issue
 
Jenkins / Bug JENKINS-58263
GitLabSCMFile cannot use api, needs heavy checkout
Change By: Parichay Barpanda
Summary: GitLabSCMFile is unable to search for JenkinsFile during cannot use api, needs heavy checkout
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 4, 2019, 11:28:03 PM7/4/19
to jenkinsc...@googlegroups.com
Parichay Barpanda started work on Bug JENKINS-58263
 
Change By: Parichay Barpanda
Status: Open In Progress

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 4, 2019, 11:41:02 PM7/4/19
to jenkinsc...@googlegroups.com
Parichay Barpanda updated an issue
Change By: Parichay Barpanda
Attachment: Screenshot from 2019-07-05 09-02-46.png

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 4, 2019, 11:41:02 PM7/4/19
to jenkinsc...@googlegroups.com
Parichay Barpanda resolved as Fixed
 

Fixed it in 8e54481 of feature/branch-source branch. There is an inconsistency in gitlab4j.

One method = `getFileInfo` took params in the sequence -> project, path, commit hash

Second method = `getRawFile` took params in the sequence -> project, commit hash, path

So I was mistaken to use the first method param sequence for second method which resulted in `Commit Not Found` exception. Now SCM API do not need to perform heavy checkout which helps in faster branch builds.

Change By: Parichay Barpanda
Status: In Progress Resolved
Resolution: Fixed

parichay.barpanda@gmail.com (JIRA)

unread,
Jul 5, 2019, 6:19:02 AM7/5/19
to jenkinsc...@googlegroups.com
Parichay Barpanda updated an issue
Need to fix repository api in GitLabSCMFile to check for ` JenkinsFile Jenkinsfile ` in the root dir of the repository.
Reply all
Reply to author
Forward
0 new messages