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

Not able to split Jenkinsfile into "sub scripts"

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          jamesdumay James Dumay added a comment -

          Hi benjamin le botland,

          We aren't the best people to ask this question. You might try asking this question on the Jenkins Users Mailing list instead.

          Thanks
          James

          Show
          jamesdumay James Dumay added a comment - Hi benjamin le botland , We aren't the best people to ask this question. You might try asking this question on the Jenkins Users Mailing list instead. Thanks James

            People

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

              Dates

              • Created:
                Updated:
                Resolved: