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

Easier access to resources from a shared library

XMLWordPrintable

      I have a Jenkins instance hosted in a Kubernetes cluster (using this Helm chart).

      I developed a Jenkins shared library that contains scripts written in Deno. I am intentionally not using Groovy as I don't care for job resume-ability and CPS adds way too many restrictions to be enjoyable.

      My script is multi-file because that's more maintainable by far.

      I'd like to be able to run it from my (Kubernetes) agents without having to use the pipeline step libraryResource on each file.

      The problem is, the shared library seems to be on the controller's file system only, I can't find it on the agent. I searched in the container I defined myself as well as in the jnlp container, I didn't find anything.

      I am really surprised that the lib's directory is not mounted in the agents, it would simplify resources usage a lot. I do understand that it may raise questions like where to put it but the gains in usability would be so big I think the pros overweight the cons.

       

      Note: would solve https://issues.jenkins.io/browse/JENKINS-52836 too.

            Unassigned Unassigned
            quilicicf Cyprien Quilici
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: