Shared Libraries on Slave - FileNotFoundException

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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?

            Assignee:
            Unassigned
            Reporter:
            Matteo Turra
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: