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

Shared Libraries on Slave - FileNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline
    • Jenkins ver. 2.150.2

      We used a shared library in pipelines for nine month in a master only configuration,
      Now we want to add slaves to improve the speed and share jobs between more cpu, but we have a strange behavior.
      In the shared library there a Groovy method to read a properties file from the workspace and we get a FileNotFoundException. How can the groovy script read file on workspace in the slave node?

      If it is true that "Groovy execution is still on the master" as in JENKINS-54646 (https://issues.jenkins-ci.org/browse/JENKINS-54646) this means shared-libraries are useless in a master slave configuration?

            Unassigned Unassigned
            mturr Matteo Turra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: