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

Support for sandbox mode for system groovy buildstep scripts in job-dsl-plugin

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None

      Add support for setting sandbox mode for system groovy build step scripts.

       

      The current implementation of system groovy script command (systemGroovyScriptCommand) does not support sandbox attribute being set.
      Further, the current implementation uses an old deprecated dataformat that forces the configuration to go through a deprecated constructor that forcefully sets the sandbox mode to false. This means that even if sandbox is set to true using custom XML via configure, that will be reverted due to the execution path through the deprecated constructor.

      The implementation in the pull request uses the modern format in groovy-plugin 2.0, and script-security plugin 1.24, allowing sandbox mode to be set.

            per_bohlin Per Böhlin
            per_bohlin Per Böhlin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: