blob: 1262b4e5b82b95e2f091c47caef199c6deb065ee [file] [log] [blame]
Filip Pytloun6d420e62017-03-23 16:35:19 +01001parameters:
2 jenkins:
3 client:
azvyagintsev3b68da42018-09-25 18:06:31 +03004 # Please keep those list sorted
Filip Pytloun6d420e62017-03-23 16:35:19 +01005 approved_scripts:
6 - field java.lang.String value
7 - field java.util.ArrayList size
8 - method com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey getPrivateKey
9 - method com.cloudbees.plugins.credentials.common.IdCredentials getId
10 - method com.cloudbees.plugins.credentials.common.PasswordCredentials getPassword
11 - method com.cloudbees.plugins.credentials.common.UsernameCredentials getUsername
12 - method groovy.json.JsonBuilder toPrettyString
13 - method groovy.json.JsonSlurperClassic parseText java.lang.String
14 - method groovy.lang.GString getBytes
15 - method groovy.lang.GroovyObject getProperty java.lang.String
Mykyta Karpin762529f2017-08-11 12:12:55 +030016 - method groovy.util.Node attributes
azvyagintsev3b68da42018-09-25 18:06:31 +030017 - method groovy.util.Node get java.lang.String
Mykyta Karpin762529f2017-08-11 12:12:55 +030018 - method groovy.util.XmlParser parse java.io.File
Mykyta Karpin7bd9a7b2017-10-19 17:46:07 +030019 - method groovy.util.XmlParser parseText java.lang.String
Alexander Evseev66f830d2018-03-30 17:43:30 +020020 - method hudson.EnvVars get java.lang.String java.lang.String
Filip Pytloun3a2dd742017-03-23 16:36:18 +010021 - method hudson.PluginManager getPlugins
22 - method hudson.PluginWrapper getShortName
azvyagintsev3b68da42018-09-25 18:06:31 +030023 - method hudson.model.Actionable getAction java.lang.Class
Alexander Evseev8f186b92017-11-28 17:20:20 +010024 - method hudson.model.Hudson getSlaves
Filip Pytloun3a2dd742017-03-23 16:36:18 +010025 - method hudson.model.Item getName
26 - method hudson.model.ItemGroup getItem java.lang.String
27 - method hudson.model.ItemGroup getItems
Filip Pytlounb047a2f2017-07-14 14:50:58 +020028 - method hudson.model.Job getBuildByNumber int
Filip Pytloun3a2dd742017-03-23 16:36:18 +010029 - method hudson.model.Job getBuilds
30 - method hudson.model.Job getLastBuild
azvyagintsev3b68da42018-09-25 18:06:31 +030031 - method hudson.model.Job getProperty java.lang.Class
Alexander Evseev538ee702017-11-28 17:36:35 +010032 - method hudson.model.Node getLabelString
33 - method hudson.model.Node getNodeName
azvyagintsev3b68da42018-09-25 18:06:31 +030034 - method hudson.model.ParameterDefinition getName
35 - method hudson.model.ParametersDefinitionProperty getParameterDefinitions
Filip Pytloun6d420e62017-03-23 16:35:19 +010036 - method hudson.model.Run getEnvironment
Filip Pytlounb047a2f2017-07-14 14:50:58 +020037 - method hudson.model.Run getId
38 - method hudson.model.Run getNumber
Filip Pytloun3a2dd742017-03-23 16:36:18 +010039 - method hudson.model.Run getResult
40 - method hudson.model.Run getTimeInMillis
41 - method hudson.model.Run isBuilding
azvyagintsev3b68da42018-09-25 18:06:31 +030042 - method hudson.model.StringParameterDefinition getDefaultValue
Filip Pytloun6d420e62017-03-23 16:35:19 +010043 - method java.io.File getAbsolutePath
44 - method java.io.File getName
45 - method java.io.File getParent
azvyagintsev3b68da42018-09-25 18:06:31 +030046 - method java.io.File listFiles
Filip Pytloun6d420e62017-03-23 16:35:19 +010047 - method java.io.Writer write java.lang.String
48 - method java.lang.AutoCloseable close
49 - method java.lang.Class isInstance java.lang.Object
50 - method java.lang.Iterable iterator
azvyagintsev3b68da42018-09-25 18:06:31 +030051 - method java.lang.String concat java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +020052 - method java.lang.Throwable printStackTrace
Filip Pytloun6d420e62017-03-23 16:35:19 +010053 - method java.net.HttpURLConnection getResponseCode
54 - method java.net.HttpURLConnection setRequestMethod java.lang.String
55 - method java.net.URI getHost
56 - method java.net.URI getPort
57 - method java.net.URL openConnection
58 - method java.net.URLConnection getHeaderField java.lang.String
59 - method java.net.URLConnection getInputStream
60 - method java.net.URLConnection getOutputStream
61 - method java.net.URLConnection setDoOutput boolean
62 - method java.net.URLConnection setRequestProperty java.lang.String java.lang.String
azvyagintsev3b68da42018-09-25 18:06:31 +030063 - method java.text.DateFormat parse java.lang.String
64 - method java.util.Calendar add int int
65 - method java.util.Calendar getTime
Filip Pytloun3a2dd742017-03-23 16:36:18 +010066 - method java.util.Collection remove java.lang.Object
Filip Pytlounb047a2f2017-07-14 14:50:58 +020067 - method java.util.Collection stream
azvyagintsev3b68da42018-09-25 18:06:31 +030068 - method java.util.Collection toArray
69 - method java.util.Date before java.util.Date
Oleg Grigorovf7b14da2017-10-25 19:08:18 +030070 - method java.util.Date getTime
Filip Pytloun6d420e62017-03-23 16:35:19 +010071 - method java.util.LinkedHashMap$LinkedHashIterator hasNext
Mykyta Karpin568e7fb2018-01-18 14:38:28 +020072 - method java.util.List add int java.lang.Object
Filip Pytloun3a2dd742017-03-23 16:36:18 +010073 - method java.util.List subList int int
Richard Felkl7dd1e582018-04-13 10:52:56 +020074 - method java.util.Map containsValue java.lang.Object
75 - method java.util.Map get java.lang.Object
azvyagintsev3b68da42018-09-25 18:06:31 +030076 - method java.util.Map isEmpty
Filip Pytloun3a2dd742017-03-23 16:36:18 +010077 - method java.util.Map remove java.lang.Object
Filip Pytloun6d420e62017-03-23 16:35:19 +010078 - method java.util.Map size
79 - method java.util.regex.MatchResult group int
Filip Pytlounb047a2f2017-07-14 14:50:58 +020080 - method java.util.regex.MatchResult groupCount
81 - method java.util.regex.Matcher find
Alexander Evseev18ffaeb2018-08-14 12:00:43 +020082 - method java.util.regex.Matcher group java.lang.String
Filip Pytloun6d420e62017-03-23 16:35:19 +010083 - method java.util.regex.Matcher matches
84 - method java.util.regex.Pattern matcher java.lang.CharSequence
Filip Pytlounb047a2f2017-07-14 14:50:58 +020085 - method java.util.stream.Stream collect java.util.stream.Collector
86 - method jenkins.model.Jenkins getItemByFullName java.lang.String
Filip Pytloun3a2dd742017-03-23 16:36:18 +010087 - method jenkins.model.Jenkins getPluginManager
Vladimir Khlyunev30f57742021-06-10 16:27:04 +000088 - method org.jenkinsci.plugins.workflow.cps.CpsClosure2 print java.lang.Object
Filip Pytloun6d420e62017-03-23 16:35:19 +010089 - method org.jenkinsci.plugins.workflow.job.WorkflowRun doStop
Filip Pytlounb047a2f2017-07-14 14:50:58 +020090 - method org.jenkinsci.plugins.workflow.job.WorkflowRun finish hudson.model.Result java.lang.Throwable
azvyagintsev3b68da42018-09-25 18:06:31 +030091 - method org.jenkinsci.plugins.workflow.steps.FlowInterruptedException getCauses
Filip Pytloun673e9462017-07-18 14:47:51 +020092 - method org.jenkinsci.plugins.workflow.support.actions.EnvironmentAction getEnvironment
Filip Pytloun6d420e62017-03-23 16:35:19 +010093 - method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper build
azvyagintsev3b68da42018-09-25 18:06:31 +030094 - method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper getRawBuild
Vladimir Khlyunev30f57742021-06-10 16:27:04 +000095 - method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper getResult
96 - method org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper setResult java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +020097 - new groovy.json.JsonBuilder
Filip Pytloun6d420e62017-03-23 16:35:19 +010098 - new groovy.json.JsonBuilder java.lang.Object
99 - new groovy.json.JsonSlurperClassic
Mykyta Karpin762529f2017-08-11 12:12:55 +0300100 - new groovy.util.XmlParser
Filip Pytloun6d420e62017-03-23 16:35:19 +0100101 - new java.io.File java.lang.String
Alexander Evseev18ffaeb2018-08-14 12:00:43 +0200102 - new java.io.File java.lang.String java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200103 - new java.io.IOException java.lang.String
Filip Pytloun6d420e62017-03-23 16:35:19 +0100104 - new java.io.OutputStreamWriter java.io.OutputStream
105 - new java.lang.Exception java.lang.String
106 - new java.lang.InterruptedException
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200107 - new java.lang.RuntimeException java.lang.String
Filip Pytloun673e9462017-07-18 14:47:51 +0200108 - new java.lang.StringBuilder
109 - new java.lang.StringBuilder int
Filip Pytloun6d420e62017-03-23 16:35:19 +0100110 - new java.net.URI java.lang.String
azvyagintsev3b68da42018-09-25 18:06:31 +0300111 - new java.text.SimpleDateFormat java.lang.String java.util.Locale
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200112 - new java.util.ArrayList
Filip Pytloun6d420e62017-03-23 16:35:19 +0100113 - new java.util.Date
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200114 - new java.util.HashMap
Vasyl Saienkoa42dbbd2018-11-12 13:49:30 +0200115 - new java.util.LinkedHashMap java.util.Map
Filip Pytloun6d420e62017-03-23 16:35:19 +0100116 - staticField groovy.io.FileType FILES
117 - staticMethod com.cloudbees.plugins.credentials.CredentialsProvider lookupCredentials java.lang.Class hudson.model.ItemGroup
azvyagintsev3b68da42018-09-25 18:06:31 +0300118 - staticMethod hudson.model.Hudson getInstance
Jakub Pavlikef17f3d2017-08-11 14:39:34 +0200119 - staticMethod java.lang.Double parseDouble java.lang.String
Filip Pytloun673e9462017-07-18 14:47:51 +0200120 - staticMethod java.lang.Integer valueOf int
Filip Pytloun3a2dd742017-03-23 16:36:18 +0100121 - staticMethod java.lang.Integer valueOf java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200122 - staticMethod java.lang.Math min int int
Filip Pytloun3a2dd742017-03-23 16:36:18 +0100123 - staticMethod java.lang.String format java.lang.String java.lang.Object[]
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200124 - staticMethod java.lang.String valueOf int
Filip Pytloun3a2dd742017-03-23 16:36:18 +0100125 - staticMethod java.lang.System exit int
126 - staticMethod java.lang.System getProperty java.lang.String
Filip Pytloun6d420e62017-03-23 16:35:19 +0100127 - staticMethod java.lang.System getenv java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200128 - staticMethod java.util.regex.Pattern compile java.lang.String
Filip Pytloun3a2dd742017-03-23 16:36:18 +0100129 - staticMethod java.util.regex.Pattern quote java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200130 - staticMethod java.util.stream.Collectors joining java.lang.CharSequence
Filip Pytloun6d420e62017-03-23 16:35:19 +0100131 - staticMethod jenkins.model.Jenkins getInstance
azvyagintsev3b68da42018-09-25 18:06:31 +0300132 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods asBoolean java.lang.CharSequence
Vasyl Saienko7e74e512017-10-26 13:47:39 +0300133 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods asBoolean java.util.regex.Matcher
Filip Pytloun6d420e62017-03-23 16:35:19 +0100134 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods collect java.util.Map groovy.lang.Closure
135 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods eachFile java.io.File groovy.io.FileType groovy.lang.Closure
Filip Pytloun3a2dd742017-03-23 16:36:18 +0100136 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods find java.util.Collection groovy.lang.Closure
137 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods findAll java.util.List groovy.lang.Closure
Filip Pytloun6d420e62017-03-23 16:35:19 +0100138 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods get java.util.Map java.lang.Object java.lang.Object
139 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Iterable int
azvyagintsev3b68da42018-09-25 18:06:31 +0300140 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Object java.lang.String
Filip Pytloun6d420e62017-03-23 16:35:19 +0100141 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.String int
azvyagintsev3b68da42018-09-25 18:06:31 +0300142 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.util.Collection java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200143 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.util.List groovy.lang.Range
Ivan Berezovskiy962bc262019-11-25 20:27:55 +0400144 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.util.List java.util.Collection
Pavel Cizinsky89c7e7a2019-05-07 11:15:06 +0200145 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.util.regex.Matcher java.util.Collection
Filip Pytloun6d420e62017-03-23 16:35:19 +0100146 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getBytes java.io.File
147 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getText java.io.InputStream
148 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods hasProperty java.lang.Object java.lang.String
azvyagintsev3b68da42018-09-25 18:06:31 +0300149 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods init java.util.List
150 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods intersect java.util.List java.lang.Iterable
Ivan Berezovskiyb40678c2018-11-15 19:22:27 +0400151 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods isInteger java.lang.String
Filip Pytloun6d420e62017-03-23 16:35:19 +0100152 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods iterator java.lang.Object
153 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods iterator java.lang.Object[]
Filip Pytloun673e9462017-07-18 14:47:51 +0200154 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.lang.StringBuffer java.lang.Object
Vladimir Khlyunev30f57742021-06-10 16:27:04 +0000155 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods max java.util.Collection
azvyagintsev3b68da42018-09-25 18:06:31 +0300156 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.lang.String java.lang.Object
Ivan Berezovskiy683ad152020-01-14 14:52:40 +0400157 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.util.List java.lang.Iterable
Ivan Berezovskiy6da4ac62019-11-25 17:26:40 +0400158 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.util.List java.util.Collection
azvyagintsev3b68da42018-09-25 18:06:31 +0300159 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods multiply java.lang.String java.lang.Number
Filip Pytloun6d420e62017-03-23 16:35:19 +0100160 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods plus java.util.List java.lang.Iterable
161 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods plus java.util.List java.lang.Object
162 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods plus java.util.List java.util.Collection
Filip Pytloun3a2dd742017-03-23 16:36:18 +0100163 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods println java.lang.Object java.lang.Object
Filip Pytloun6d420e62017-03-23 16:35:19 +0100164 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods putAt java.lang.Object java.lang.String java.lang.Object
Alexander Evseev91d0f8d2018-08-27 13:49:23 +0200165 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods readLines java.lang.String
Vladimir Khlyunev30f57742021-06-10 16:27:04 +0000166 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods removeElement java.util.Collection java.lang.Object
azvyagintsev3b68da42018-09-25 18:06:31 +0300167 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods reverse java.util.List
Filip Pytloun673e9462017-07-18 14:47:51 +0200168 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods sort java.util.Collection
169 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods split java.lang.String
Filip Pytlounb047a2f2017-07-14 14:50:58 +0200170 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods takeRight java.util.List int
azvyagintsev3b68da42018-09-25 18:06:31 +0300171 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods toBoolean java.lang.Boolean
Ivan Berezovskiyb40678c2018-11-15 19:22:27 +0400172 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods toInteger java.lang.String
azvyagintsev3b68da42018-09-25 18:06:31 +0300173 - staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods toSorted java.lang.Iterable
Filip Pytloun6d420e62017-03-23 16:35:19 +0100174 - staticMethod org.codehaus.groovy.runtime.EncodingGroovyMethods encodeBase64 byte[]
175 - staticMethod org.codehaus.groovy.runtime.ScriptBytecodeAdapter bitwiseNegate java.lang.Object
Vladimir Khlyunev30f57742021-06-10 16:27:04 +0000176 - staticMethod org.jenkinsci.plugins.workflow.cps.Safepoint safepoint