title: How can I make groovy on Jenkins mask the output of a variable the same way it does for credentials?
body: <p>Is there a way in groovy on Jenkins to take an arbitrary String variable - say the result of an API call to another service - and make Jenkins mask it in console output as it does automatically for values read in from the Credentials Manager?</p>