How to call global/folder password variables from jython script?


I would like to use global variables and passwordvariables to store some credentials for my release. May I know the proper syntax to retrieve a global password (or a folder password) in jython script?

For global variables, i know it can use username = globalVariables[‘global.JIRA_USER’], but I cannot find the syntax for retrieve global passwords like “password=release.passwordVariableValues[’$’ + ‘{global.JIRA_PASSWORD}’]”
It will be great if I can find more coding examples too.
Thanks for your advice.