Add sandbox option to dsl builder

Job DSL plugin supports execution of its groovy DSL code
via sandbox, but until now there was missing option to control it.

Change-Id: I8dccfc608cf59ac46ded712dc937983a22b9d3b3
This commit is contained in:
Pavel Sedlák
2022-10-21 00:16:59 +02:00
parent a191e0b174
commit c12f334ac7
5 changed files with 7 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
<javaposse.jobdsl.plugin.ExecuteDslScripts>
<targets>jobs/*/*/*.groovy</targets>
<usingScriptText>false</usingScriptText>
<sandbox>false</sandbox>
<ignoreExisting>true</ignoreExisting>
<removedJobAction>IGNORE</removedJobAction>
<removedViewAction>IGNORE</removedViewAction>

View File

@@ -4,6 +4,7 @@
<javaposse.jobdsl.plugin.ExecuteDslScripts>
<scriptText>job { name 'dsljob' }</scriptText>
<usingScriptText>true</usingScriptText>
<sandbox>true</sandbox>
<ignoreExisting>true</ignoreExisting>
<removedJobAction>DISABLE</removedJobAction>
<removedViewAction>DELETE</removedViewAction>

View File

@@ -6,3 +6,4 @@ builders:
removed-view-action: "DELETE"
lookup-strategy: "SEED_JOB"
additional-classpath: "*.jar"
sandbox: "true"

View File

@@ -4,6 +4,7 @@
<javaposse.jobdsl.plugin.ExecuteDslScripts>
<targets>jobs/**/*.groovy</targets>
<usingScriptText>false</usingScriptText>
<sandbox>false</sandbox>
<ignoreExisting>true</ignoreExisting>
<removedJobAction>DISABLE</removedJobAction>
<removedViewAction>DELETE</removedViewAction>