[JIRA] (JENKINS-60892) I'm not sure weather my Git Clone from Reference repo or from Remote repo

4 views
Skip to first unread message

amila.kdam@gmail.com (JIRA)

unread,
Jan 28, 2020, 8:40:03 AM1/28/20
to jenkinsc...@googlegroups.com
Amila Gunathilake created an issue
 
Jenkins / Bug JENKINS-60892
I'm not sure weather my Git Clone from Reference repo or from Remote repo
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: image-2020-01-28-08-27-46-736.png, image-2020-01-28-08-29-42-731.png, image-2020-01-28-08-31-02-168.png, image-2020-01-28-08-34-51-372.png, image-2020-01-28-08-36-15-627.png, image-2020-01-28-08-36-59-223.png, image-2020-01-28-08-38-30-390.png
Components: git-plugin
Created: 2020-01-28 13:39
Environment: Live Environment
Labels: pipeline
Priority: Critical Critical
Reporter: Amila Gunathilake

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 ?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 28, 2020, 9:20:07 AM1/28/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Not A Defect
 

Please don't use the bug tracker to ask questions. When we use the bug tracker to ask questions, we spend the time of the very few people that monitor specific bug queues rather than allowing a larger community of users to assist with answers to the questions.

In this case, command line git silently uses a reference repository to reduce network data transfer and the amount of space used on the disc.

The highest confidence technique to confirm use of a reference repository is to compare the size of the contents of the .git directory in a workspace that used a reference repository with the size of the contents of the .git directory in a workspace that does not use a reference repository. If they are approximately the same size, then content from the reference repository is not being used to save space.

Please do not reopen this issue with further questions. Use the Jenkins mailing list or the Jenkins chat systems to ask questions so that more people can help with the answers to those questions.

Change By: Mark Waite
Status: Open Closed
Resolution: Not A Defect

mark.earl.waite@gmail.com (JIRA)

unread,
Jan 28, 2020, 9:22:05 AM1/28/20
to jenkinsc...@googlegroups.com
Please don't use the bug tracker to ask questions.  When we use the bug tracker to ask questions, we spend the time of the very few people that monitor specific bug queues rather than allowing a larger community of users to assist with answers to the questions.

In this case, command line git *silently* uses a reference repository to reduce network data transfer and the amount of space used on the disc.   A reference repository does not *clone* from the reference.  It clones from the defined repository and *uses* the reference repository to save space and reduce network data transfer.

The highest confidence technique to confirm use of a reference repository is to compare the size of the contents of the {{.git}} directory in a workspace that used a reference repository with the size of the contents of the {{.git}} directory in a workspace that does not use a reference repository.  If they are approximately the same size, then content from the reference repository is not being used to save space.

Please *do not reopen* this issue with further questions.  Use the Jenkins mailing list or the Jenkins chat systems to ask questions so that more people can help with the answers to those questions.
Reply all
Reply to author
Forward
0 new messages