In a declarative pipeline, I have this job call :
build job: 'myJob', parameters: [
string(name: 'PARAM1', value: 'value1'),
string(name: 'PARAM2', value: 'value2'),
], wait: true
I would like Intellij recognizes this syntax with a GDSL file. Currently, I have in my GDSL file :
method(name: 'build', type: 'Object', namedParams: [
parameter(name: 'job', type: 'java.lang.String'),
parameter(name: 'parameters', type: 'java.util.List'),
parameter(name: 'propagate', type: 'boolean'),
parameter(name: 'quietPeriod', type: 'java.lang.Integer'),
parameter(name: 'wait', type: 'java.lang.Boolean')])
But defining a java.util.List
type for parameter is incorrect : IntelliJ do not expect to have string()
as parameter.
Any idea ?