Status: Open (View Workflow)
Environment:Jenkins server: runs on jenkins/jenkins:lts docker image (image id: 5907903170ad), with Jenkins version 2.150.1.
Credentials-binding-plugin version: 1.17.
Agent: runs on the server node.
A NullPointerException with no stacktrace is experienced when trying to run the following pipeline:
where "mysecret" is a credential with it's "kind" being "username and password".
This exception causes the job to fail.
Specifically, `usernameColonPassword` succeeds, while `usernamePassword` fails; `usernamePassword 4` is never printed to the log.
This was the first time I have tried to run this script, so I have never observed this succeeding; for all I know, it has always failed.
My workaround options are bad: either parse the password out of the `user:pass` format, or abandon the plugin.
UPDATE: as mentioned in the comments, there is a better workaround. This ticket is now for removing or documenting the requirement for all arguments to be used, and creating a useful error message.