Not able to split Jenkinsfile into "sub scripts"

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

XMLWordPrintable

      Hi,

      I want to split each step from the pipeline into his own file. The Jenkinsfile will only work as a master script calling every step as a sub script (kind of an include in php). I already tried a static method in a static class but the compiler is returning me this error :

      "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.io.File java.lang.String"

      Maybe there is another/better way to do it. Can you support me on this topic?

      Thanks,

      Benjamin.

            Assignee:
            James Dumay
            Reporter:
            benjamin le botland
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: