I'm trying to create a Groovy Notification plugin for Rundeck that has one property called webhook_url
, which is stored in Key Storage. When adding the plugin to a job's notification config, it should have you choose the entry in Key Storage and it'll substitute that key's value. I can get the rendering option to allow you to choose a key, however it substitutes the path to the key rather than the value it holds. It does not like my valueConversion
parm in Groovy. Is this because I'm doing it wrong, or because Groovy Notification plugins don't support STORAGE_PATH_AUTOMATIC_READ?
Below is my config:
configuration{
webhook_url title:"Webhook URL", required: true, type:"String", description:"dummy", renderingOptions:[valueConversion:StringRenderingConstants.ValueConversion.STORAGE_PATH_AUTOMATIC_READ, selectionAccessor:StringRenderingConstants.SelectionAccessor.STORAGE_PATH]
}
Thanks in advance.