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

How to use a reference repository in an organization folder?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins Live

      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 (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/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 inside "Townsuite" folder I have serveral different repositories such as WebPortals.git.

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

      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 ?

            markewaite Mark Waite
            amila_devops Amila Gunathilake
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: