-
Bug
-
Resolution: Not A Defect
-
Major
-
None
context
I am trying to define a string parameter with a trim option set to true in a pipelineJob (inspired from syntax of implementation done in JENKINS-47115).
pipelineJob { ... parameters { stringParam('OWNER', 'team1', 'Team', true) } ... }
When I run the job, I got a job failure :
Processing DSL script jenkins-jobs/main_jobdsl.groovy (main_jobdsl.groovy, line 88) No signature of method: javaposse.jobdsl.dsl.helpers.BuildParametersContext.stringParam() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean) values: [OWNER, team1, Team, ...] Possible solutions: stringParam(java.lang.String, java.lang.String, java.lang.String), stringParam(java.lang.String, java.lang.String), stringParam(java.lang.String), runParam(java.lang.String, java.lang.String, java.lang.String), runParam(java.lang.String, java.lang.String, java.lang.String, java.lang.String).
looking at the code of the BuildParametersContext, I see the trim option is not managed in the method stringParam.
created PR : https://github.com/jenkinsci/job-dsl-plugin/pull/1169