Hi!
How i can use global vars in notification section in bamboo specs? For example:
notifications:
- events:
- plan-status-changed
recipients:
- watchers
- webhook:
name: Build webhook
url: '${bamboo.jirahubBaseUrl}/v1/webhook/bamboo'.
But when i commit this change, i see error in atlassian-bamboo.log
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException: webhookRecipient: Argument ${bamboo.jirahubBaseUrl}/v1/webhook/bamboo is not valid URL
I found the answer. The scheme cannot be in variable. For example:
${bamboo.baseUrl} = http://example.com - wrong
${bamboo.baseUrl} = example.com - right
And use in notification
url: http://${bamboo.baseUrl}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.