-
Bug
-
Resolution: Unresolved
-
Major
-
None
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the defaultValue("foo") has been replaced by defaultValueAsSecret(Secret.fromString("foo")) (as described in https://issues.jenkins.io/browse/JENKINS-63499) and DSL Job plugin doesn't recognize the hudson.util.Secret class.
Getting the error:
No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext
Example:
password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }
[JENKINS-64539] No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext
Description |
Original:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in *https://issues.jenkins.io/browse/JENKINS-63499*) and DSL Job plugin doesn't recognize the *hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
New:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in *https://issues.jenkins.io/browse/JENKINS-63499*)* and DSL Job plugin doesn't recognize the *hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
Description |
Original:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in *https://issues.jenkins.io/browse/JENKINS-63499*)* and DSL Job plugin doesn't recognize the *hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
New:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in https://issues.jenkins.io/browse/JENKINS-63499) ** and DSL Job plugin doesn't recognize the *hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
Description |
Original:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in https://issues.jenkins.io/browse/JENKINS-63499) ** and DSL Job plugin doesn't recognize the *hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
New:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in https://issues.jenkins.io/browse/JENKINS-63499) *and DSL Job plugin doesn't recognize the hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
Description |
Original:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in https://issues.jenkins.io/browse/JENKINS-63499) *and DSL Job plugin doesn't recognize the hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
New:
After Jenkins upgrade to 2.249, the "password" parameter can't be used since the *defaultValue("foo")* has been replaced by *defaultValueAsSecret(Secret.fromString("foo"))* (as described in https://issues.jenkins.io/browse/JENKINS-63499) and DSL Job plugin doesn't recognize the *hudson.util.Secret* class.
Getting the error: *No such property: Secret for class: javaposse.jobdsl.plugin.structs.DescribableContext* Example: {code:java} password{ name('name') description('description') defaultValueAsSecret(Secret.fromString("foo")) }{code} |
Assignee | Original: Daniel Spilker [ daspilker ] | New: Jamie Tanna [ jamietanna ] |
Hi Recently we have upgraded from Jenkins Core from 2.222.4 to 2.303.3. And we have also upgraded Model-defination plugins to 1.7.2 (JFYI, group of pipeline model plugins). Now when we trying to use this "defaultValueAsSecret" - as per the suggestion (with Ref to ticket -
JENKINS-63499). We are getting the bellow error.JFYI; earlier/prior-to-upgrade we were using 'defaultValue' and it was OK ..
Code snippet:
Also we changed/tried with --> defaultValueAsSecret(Secret.fromString('')),
Error: