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

Importing a workspace file into a Job DSL script with the Groovy Sandbox does not work on Java 17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • job-dsl-plugin
    • None
    • v1.81.1

      Hello,

      My setup according to https://github.com/jenkinsci/job-dsl-plugin/wiki/Real-World-Examples#import-other-files-ie-with-class-definitions-into-your-script is not working anymore after some version upgrades of plugins and Jenkins.

       

      Script security is disabled.

       

      I get the error

      Building in workspace /var/jenkins_home/workspace/Import_Jobs_from_DSL
      Processing DSL script job_descriptions/jobs-staging/seed.groovy
      ERROR: startup failed:
      seed.groovy: 1: unable to resolve class utilities.BuildUtil
       @ line 1, column 1.
         import utilities.BuildUtil
         ^
      
      1 error
      
      Finished: FAILURE 

      Is it possible to make it working again?

            basil Basil Crow
            bmaehr Bernhard M
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: