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

Disable shallow clone when we know a merge will take place

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      There is an issue when building pull requests and the clone trait is present with shallow clone option.
      Apparently you need some history in order to be able to do a merge.

      We need to disable shallow clone when we know a merge will take place.

      At the first look, this can be fixed in
      com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder
      org.jenkinsci.plugins.github_branch_source.GitHubSCMBuilder

      I had identified the problem using bitbucket-branch-source-plugin but the should be visible on github-branch-source-plugin also..

        Attachments

          Issue Links

            Activity

            drealecs Alexandru Pătrănescu created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Issue Type Bug [ 1 ] New Feature [ 2 ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            stephenconnolly Stephen Connolly made changes -
            Description There is an issue when building pull requests and the clone trait is present with shallow clone option.
            Apparently you need some history in order to be able to do a merge.

            We need to disable shallow clone when we know a merge will take place.

            At the first look, this can be fixed in
            {{com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder}}
            {{org.jenkinsci.plugins.github_branch_source.GitHubSCMBuilder}}

            I had identified the problem using bitbucket-branch-source-plugin but the should be visible on github-branch-source-plugin also.
            There is an issue when building pull requests and the clone trait is present with shallow clone option.
             Apparently you need some history in order to be able to do a merge.

            We need to disable shallow clone when we know a merge will take place.

            At the first look, this can be fixed in
             {{com.cloudbees.jenkins.plugins.bitbucket.BitbucketGitSCMBuilder}}
             {{org.jenkinsci.plugins.github_branch_source.GitHubSCMBuilder}}

            I had identified the problem using bitbucket-branch-source-plugin but the should be visible on github-branch-source-plugin also..
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "git-client-plugin#255 (Web Link)" [ 17335 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "git-plugin#516 (Web Link)" [ 17336 ]
            stephenconnolly Stephen Connolly made changes -
            Assignee Stephen Connolly [ stephenconnolly ]
            stephenconnolly Stephen Connolly made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "gitea-plugin#4 (Web Link)" [ 17337 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "bitbucket-branch-source-plugin#64 (Web Link)" [ 17338 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "github-branch-source-plugin#150 (Web Link)" [ 17339 ]
            stephenconnolly Stephen Connolly made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            stephenconnolly Stephen Connolly made changes -
            Issue Type New Feature [ 2 ] Bug [ 1 ]
            stephenconnolly Stephen Connolly made changes -
            Link This issue blocks JENKINS-44598 [ JENKINS-44598 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 17358 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 17359 ]
            stephenconnolly Stephen Connolly made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 17360 ]
            stephenconnolly Stephen Connolly made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            shiqiyang Shiqi Yang made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            stephenconnolly Stephen Connolly made changes -
            Assignee Stephen Connolly [ stephenconnolly ]
            markewaite Mark Waite made changes -
            Status Reopened [ 4 ] Open [ 1 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              drealecs Alexandru Pătrănescu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: