Commit 43ef7ca
ci: fix Secret.trim() crash by making TARGET_NODE_PASSWORD a string param
The password() parameter type made params.TARGET_NODE_PASSWORD a
hudson.util.Secret, which has no .trim() method — so the Copy Artifacts
stage crashed with MissingMethodException before doing any work, and all
downstream stages were skipped. A Secret also interpolates to its
encrypted form in "SSHPASS=${...}", which would have broken sshpass auth
even past the crash.
Switch it to a string param so both the validation and the SSHPASS env
interpolation receive plaintext. Note: string params are not masked in
the UI; use a Jenkins credential if masking is required.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 38e4fe6 commit 43ef7ca
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments