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

GitLabSCMFile cannot use api, needs heavy checkout

    Details

    • Similar Issues:
    • Sprint:
      GSoC 2019. Coding Phase 2

      Description

      Need to fix repository api in GitLabSCMFile to check for `Jenkinsfile` in the root dir of the repository.

        Attachments

          Activity

          Hide
          baymac Parichay Barpanda added a comment -

          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.

          Show
          baymac Parichay Barpanda added a comment - 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.

            People

            • Assignee:
              baymac Parichay Barpanda
              Reporter:
              baymac Parichay Barpanda
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: