[JIRA] (JENKINS-61009) Jenkins GIT Reference Repository blocker in GitHub Organization Pipeline, where I have multi repositories in one folder.

73 views
Skip to first unread message

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:04:04 PM2/6/20
to jenkinsc...@googlegroups.com
Amila Gunathilake created an issue
 
Jenkins / Bug JENKINS-61009
Jenkins GIT Reference Repository blocker in GitHub Organization Pipeline, where I have multi repositories in one folder.
Issue Type: Bug Bug
Assignee: Federico Pellegrin
Attachments: image-2020-02-07-07-30-32-750.png, image-2020-02-07-07-31-31-024.png
Components: _unsorted, git-client-plugin, git-plugin, github-branch-source-plugin
Created: 2020-02-07 02:03
Environment: Jenkins Live
Priority: Major Major
Reporter: Amila Gunathilake

Hi there,

I'm going to set up a GIT-HUB reference repository for Jenkins where I can reduce the disk sace and network bandwidth.  So I read all in [Jenkins GIT Plugin|https://plugins.jenkins.io/git]  and according to that I have setup my configurations as below. 

But here my Jenkins pipelines created as a GIT-HUB Organization Job where I have multiple repositories under the "Townsuite" folder.  So I have referenced each repositories in Jenkins Master server, as example I have  WebPortals.git repo folder referenced in /var/lib/jenkins/gitcache/TownSuite/WebPortals.git.
So my problem is when I'm going to mention the reference path in my Jobs' configuration > GITHUB Organization > Advanced clone behaviours I cannot give the reference repositories folder path for each Repository folder location as per my Jenkins master server's folder path, because I'm using the GIT-HUB Organization pipeline Job which I have "Townsuite" folder as the GitHub Organization Folder.  

So as above only I can edit or save is the "Townsuite" folder configurations only but Other 

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

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:09:08 PM2/6/20
to jenkinsc...@googlegroups.com

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:14:03 PM2/6/20
to jenkinsc...@googlegroups.com

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:15:02 PM2/6/20
to jenkinsc...@googlegroups.com
Amila Gunathilake updated an issue
Hi there,

I'm going to set up a GIT-HUB reference repository for Jenkins where I can reduce the disk sace and network bandwidth.  So I read all in [Jenkins GIT Plugin|[https://plugins.jenkins.io/git]]  and according to that I have setup my configurations as below. 
!image-2020-02-07-07-31-31-024.png!

But here my Jenkins pipelines created as a GIT-HUB Organization Job
(as you can see above) where I have multiple repositories under the "_Townsuite_" folder.  So I have referenced each repositories in Jenkins Master server, as example I have  WebPortals.git repo folder referenced in /var/lib/jenkins/gitcache/TownSuite/{color:# FF0000 ff0000 }WebPortals.git{color}.
So my problem is when I'm going to mention the reference path in my Jobs' *configuration > GITHUB Organization > Advanced clone behaviours* I cannot give the reference repositories folder path for each Repository folder location as per my Jenkins master server's folder path, because I'm using the _GIT-HUB Organization pipeline_ Job which I have "_Townsuite_" folder as the GitHub Organization Folder.  

!image-2020-02-07-07-39-59-823.png!

So as above only I can edit or save is the "_Townsuite_" folder configurations only but
Other inside "Townsuite" folder I have serveral different repositories such as   WebPortals.git.

!image-2020-02-07-07-44-43-597.png!

  So, My Problem is  I cannot give those reference paths because those sub folder *configurations* are NOT editable they READ-ONLY and cannot save. 

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:19:03 PM2/6/20
to jenkinsc...@googlegroups.com

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:21:03 PM2/6/20
to jenkinsc...@googlegroups.com
Amila Gunathilake updated an issue
Hi there,

I'm going to set up a GIT-HUB reference repository for Jenkins where I can reduce the disk sace and network bandwidth.  So I read all in [Jenkins GIT Plugin|[https://plugins.jenkins.io/git]]  and according to that I have setup my configurations as below. 
!image-2020-02-07-07-31-31-024.png!

But here my Jenkins pipelines created as a GIT-HUB Organization Job (as you can see above) where I have multiple repositories under the "_Townsuite_" folder.  So I have referenced each repositories in Jenkins Master server, as example I have  WebPortals.git repo folder referenced in /var/lib/jenkins/gitcache/TownSuite/{color:#ff0000}WebPortals.git{color}.

So my problem is when I'm going to mention the reference path in my Jobs' *configuration > GITHUB Organization > Advanced clone behaviours* I cannot give the reference repositories folder path for each Repository folder location as per my Jenkins master server's folder path, because I'm using the _GIT-HUB Organization pipeline_ Job which I have "_Townsuite_" folder as the GitHub Organization Folder.  

!image-2020-02-07-07-39-59-823.png!

So as above only I can edit or save is the "_Townsuite_" folder configurations only but inside "Townsuite" folder I have serveral different repositories such as WebPortals.git.


!image-2020-02-07-07-44-43-597.png!

  So, My Problem is  I cannot give those reference paths because those sub folder *configurations* are NOT editable they READ-ONLY and cannot save. 


!image-2020-02-07-07-49-35-906.png!



So I hoe you guys understand my problem and because of this issue I cannot use the reference repository option for each repositories.  Is there any thing I can modify in Jenkinsfile code to over come this issue or how can I give my Reference folder path correctly and How can I SAVE it ?

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:22:02 PM2/6/20
to jenkinsc...@googlegroups.com

amila.kdam@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:25:03 PM2/6/20
to jenkinsc...@googlegroups.com
Amila Gunathilake updated an issue
Hi there,

I'm going to set up a GIT-HUB reference repository for Jenkins where I can reduce the disk sace and network bandwidth.  So I read all in [Jenkins GIT Plugin|[https://plugins.jenkins.io/git]]  and according to that I have setup my configurations as below. 
!image-2020-02-07-07-31-31-024.png!

But here my Jenkins pipelines created as a GIT-HUB Organization Job (as you can see above) where I have multiple repositories under the "_Townsuite_" folder.  So I have referenced each repositories in Jenkins Master server, as example I have  WebPortals.git repo folder referenced in /var/lib/jenkins/gitcache/TownSuite/{color:#ff0000}WebPortals.git{color}.
So my problem is when I'm going to mention the reference path in my Jobs' *configuration > GITHUB Organization > Advanced clone behaviours* I cannot give the reference repositories folder path for each Repository folder location as per my Jenkins master server's folder path, because I'm using the _GIT-HUB Organization pipeline_ Job which I have "_Townsuite_" folder as the GitHub Organization Folder.  

!image-2020-02-07-07-39-59-823.png!

So as above only I can edit or save is the "_Townsuite_" folder configurations only but inside "Townsuite" folder I have serveral different repositories such as WebPortals.git.

!image-2020-02-07-07-44-43-597.png!

  So, My Problem is  I cannot give those reference paths because those sub folder *configurations* are NOT editable they READ-ONLY and cannot save. 

!image-2020-02-07-07-49-35-906.png!



So I hoe you guys understand my problem and because of this issue I cannot use the reference repository option for each repositories.  Is there any thing I can modify in Jenkinsfile code to over come this issue or how can I give my Reference folder path correctly and How can I SAVE it ?

jbq@caraldi.com (JIRA)

unread,
Feb 7, 2020, 3:22:03 AM2/7/20
to jenkinsc...@googlegroups.com

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

unread,
Feb 7, 2020, 9:55:03 AM2/7/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: _unsorted
Component/s: git-client-plugin
Component/s: github-branch-source-plugin

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

unread,
Feb 7, 2020, 9:55:03 AM2/7/20
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-61009
 
Re: Jenkins GIT Reference Repository blocker in GitHub Organization Pipeline, where I have multi repositories in one folder.

Thanks for a well described question. We generally prefer that questions be asked in the mailing list or in the chat systems, but this question will lead to a documentation improvement, so let's answer the question here. Once I'm confident that your question is addressed and you're seeing the results you want, then I'll convert this issue into a documentation issue for the git plugin.

Organization folder users have several choices for reference repositories:

  1. Define the reference repository in each Jenkinsfile as in this example
  2. Define the reference repository in the organization folder and use a combined repository that includes the content from all the repositories in the organization
  3. Don't use reference repositories

Can you confirm that the reference repository in each Jenkinsfile works for you?

Reply all
Reply to author
Forward
0 new messages