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

Git plugin lightweight checkout copies full repository

    • 3.0.0

      Using multibranch pipeline clones the entire repository on the master instead of just getting the Jenkinsfile with the lighweight method. The lightweight checkout is the default behaviour as far as I know, but it's not working in my case. The clone is repeated when the pipeline starts on a slave machine, of course. Here is my setup:

      Branch Sources / Bitbucket server (connection is fine)

      Behaviours:

      Discover branches

      Advanced clone behaviours:

      • Fetch tags: unchecked
      • Honor refspec on initial clone: checked
      • Shallow clone: checked
      • Shallow clone depth: 1
      • Path to reference repo to use during clone: empty
      • Timeout: empty

      Build strategies: Skip initial build on first branch indexing

      Build configuration:

      • Mode: by Jenkinsfile
      • Script path: build/jenkins/compile/Jenkinsfile

      Please find the checkout log in the attachment.

          [JENKINS-62349] Git plugin lightweight checkout copies full repository

          Gergely Pilisi created issue -
          Mark Waite made changes -
          Summary Original: Multibranch pipeline lightweight checkout not working New: Git plugin lightweight checkout copies full repository
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Description Original: Using multibranch pipeline clones the entire repository on the master instead of just getting the Jenkinsfile with the lighweight method. The lightweight checkout is the default behaviour as far as I know, but it's not working in my case. The clone is repeated when the pipeline starts on a slave machine, of course. Here is my setup:

          Branch Sources / Bitbucket server (connection is fine)

          Behaviours:

          Discover branches

          Advanced clone behaviours:

          -Fetch tags: unchecked

          -Honor refspec on initial clone: checked

          -Shallow clone: checked

          -Shallow clone depth: 1

          -Path to reference repo to use during clone: empty

          -Timeout: empty

          Build strategies: Skip initial build on first branch indexing

          Build configuration:

          -Mode: by Jenkinsfile

          -Script path: build/jenkins/compile/Jenkinsfile

          Please find the checkout log in the attachment.

           
          New: Using multibranch pipeline clones the entire repository on the master instead of just getting the Jenkinsfile with the lighweight method. The lightweight checkout is the default behaviour as far as I know, but it's not working in my case. The clone is repeated when the pipeline starts on a slave machine, of course. Here is my setup:

          Branch Sources / Bitbucket server (connection is fine)

          Behaviours:

          Discover branches

          Advanced clone behaviours:

          - Fetch tags: unchecked
          - Honor refspec on initial clone: checked
          - Shallow clone: checked
          - Shallow clone depth: 1
          - Path to reference repo to use during clone: empty
          - Timeout: empty

          Build strategies: Skip initial build on first branch indexing

          Build configuration:

          - Mode: by Jenkinsfile
          - Script path: build/jenkins/compile/Jenkinsfile

          Please find the checkout log in the attachment.
          Gergely Pilisi made changes -
          Component/s New: bitbucket-branch-source-plugin [ 21428 ]
          Component/s Original: git-plugin [ 15543 ]
          Component/s Original: pipeline [ 21692 ]
          Labels Original: git pipeline plugin New: bitbucket bitbucket-branch-source-plugin bitbucket-server
          Kalle Niemitalo made changes -
          Component/s New: atlassian-bitbucket-server-integration-plugin [ 25721 ]
          Component/s Original: bitbucket-branch-source-plugin [ 21428 ]
          Kalle Niemitalo made changes -
          Link New: This issue duplicates JENKINS-63033 [ JENKINS-63033 ]
          Kalle Niemitalo made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Martin Henschke made changes -
          Released As New: 3.0.0
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            Unassigned Unassigned
            gpilisi Gergely Pilisi
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: