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?