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}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.