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

I'm not sure weather my Git Clone from Reference repo or from Remote repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • git-plugin
    • Live Environment

      Hi all,
      I'm using Windows 10 slave node server as my Jenkins agent and my Master Jenkins server (which Jenkins insatalled) is a Linux server.  I have implemented GIT reference Repository feature for the purpose of lower my network bandwidth. 
      So I have created a reference repository in my Windows node  by using the git command `git clone --mirror https://github.com/AmilaDevops/WebPortals.git`  and it creates the WebPortals.git inside like this. 

       

       

      Then I made my Jenkinsfile declarative pipeline's code changes as below to checkout from Reference Repo not from the Remote repo. 

      I have added my Jenkins pipeline configurations also as below.

       

       

       

      But my question is I'm getting my Jenkins console output as below. It's saying still fetching from the Remote GIT repository instead of the Reference repository.

       

       

      But my building folder is also containing an alternate file which referring the reference repositoty. 

       

       

       

       

       

       

       

      Can anyone help me out what's going on ???

      Thanks all if you guys can solve my situation or can anyone tell me what's actually happening here ?

            markwaite Mark Waite
            amila_devops Amila Gunathilake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: