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 ?

        1. image-2020-02-07-07-30-32-750.png
          84 kB
          Amila Gunathilake
        2. image-2020-02-07-07-31-31-024.png
          82 kB
          Amila Gunathilake
        3. image-2020-02-07-07-39-59-823.png
          90 kB
          Amila Gunathilake
        4. image-2020-02-07-07-44-43-597.png
          92 kB
          Amila Gunathilake
        5. image-2020-02-07-07-49-35-906.png
          95 kB
          Amila Gunathilake
        6. image-2020-02-09-09-11-01-619.png
          61 kB
          Amila Gunathilake
        7. image-2020-02-09-15-24-32-777.png
          69 kB
          Amila Gunathilake
        8. image-2020-02-09-15-37-47-089.png
          70 kB
          Amila Gunathilake
        9. image-2020-02-10-23-16-48-189.png
          73 kB
          Amila Gunathilake
        10. image-2020-02-10-23-47-02-131.png
          129 kB
          Amila Gunathilake
        11. image-2020-02-12-07-57-17-958.png
          110 kB
          Amila Gunathilake
        12. image-2020-02-12-07-58-17-379.png
          139 kB
          Amila Gunathilake
        13. image-2020-02-12-07-59-42-137.png
          244 kB
          Amila Gunathilake

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

              Created:
              Updated:
              Resolved: