-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: core
Using following jenkinsfile:
properties([ Â Â parameters([ Â Â Â Â password(name: 'PASSWD', description: 'Test passwd') Â Â ]) ]) node('ansible'){ Â Â stage("Stage 1"){ Â Â Â Â echo 'test' Â Â } }
After running a job following warning is thrown to the jenkins log every minute:
2022-06-01 10:39:12 WARNING hudson.util.Secret toString Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://www.jenkins.io/redirect/hudson.util.Secret/
This should be correct usage of password parameter but it still throws a warning. When there is more jobs using this approach the jenkins log is flooded by hundreds warning messages every minute.
Attaching plugins list.