Shared Libraries on Slave - FileNotFoundException

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: pipeline
    • Environment:
      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?

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

              Created:
              Updated: