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

GitLabSCMFile cannot use api, needs heavy checkout

    • GSoC 2019. Coding Phase 2

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

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

          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.

          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.

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

              Created:
              Updated:
              Resolved: