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

Not able to split Jenkinsfile into "sub scripts"

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.

            jamesdumay James Dumay
            leb6abt benjamin le botland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: