Usage global vars

Илья Тихонов December 14, 2020


How i can use global vars in notification section in bamboo specs? For example:

   - events:
   - plan-status-changed
   - 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

1 answer

1 accepted

0 votes
Answer accepted
Илья Тихонов December 18, 2020

I found the answer. The scheme cannot be in variable. For example:

${bamboo.baseUrl} = - wrong

${bamboo.baseUrl} = - right


And use in notification 

url: http://${bamboo.baseUrl}

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events