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

Add support for groovy sandbox mode in environmentVariables closure

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • job-dsl-plugin

      The "Prepare an Environment for the run" (environmentVariables {}) section supports a "sandbox" mode for the Groovy Script.  It would be useful for the DSL plugin to allow for setting the value of this checkbox.

      Use case: I (re)generate a job periodically.  The Groovy Script changes slightly over time, which makes Jenkins require in-process script approval and prevents the job from running until someone approves the script and re-launches it.  With sandbox mode, this would not happen.  (Also, it would potentially be more secure)

      PR: https://github.com/jenkinsci/job-dsl-plugin/pull/1165

            daspilker Daniel Spilker
            akom Alexander Komarov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: