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

Git plugin lightweight checkout copies full repository

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            gpilisi Gergely Pilisi created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Summary Multibranch pipeline lightweight checkout not working Git plugin lightweight checkout copies full repository
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Description 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.

             
            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.
            gpilisi Gergely Pilisi made changes -
            Component/s bitbucket-branch-source-plugin [ 21428 ]
            Component/s git-plugin [ 15543 ]
            Component/s pipeline [ 21692 ]
            Labels git pipeline plugin bitbucket bitbucket-branch-source-plugin bitbucket-server
            kon Kalle Niemitalo made changes -
            Component/s atlassian-bitbucket-server-integration-plugin [ 25721 ]
            Component/s bitbucket-branch-source-plugin [ 21428 ]
            kon Kalle Niemitalo made changes -
            Link This issue duplicates JENKINS-63033 [ JENKINS-63033 ]
            kon Kalle Niemitalo made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gpilisi Gergely Pilisi
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: