jenkinsci / jenkinsci/persistent-parameter-plugin

Getting an error in a seed job declarative pipeline

Open
#14 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
8
Forks
15
PR merge metrics
No merged PRs in 30d

Description

### Version report

Jenkins and plugins versions report:
Jenkins v2.277.4
persistent-parameter-plugin v1.3

I am trying to add this in a seed job but I am getting this error:

```
Processing DSL script nonprod_deploy.jenkins
ERROR: (nonprod_deploy.jenkins, line 30) No signature of method: javaposse.jobdsl.dsl.helpers.BuildParametersContext.persistentBoolean() is applicable for argument types: (java.util.LinkedHashMap) values: [[name:Boolean, defaultValue:true, description:A boolean parameter, ...]]
Finished: FAILURE
```

Any idea what I am doing wrong?

This is my code:

```
...
parameters {
persistentBoolean(name: 'Boolean', defaultValue: true, description: 'A boolean parameter', successfulOnly: false)
}
...
```
However, this works no problem:
https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.BuildParametersContext.booleanParam

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.