Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Usage global vars

Илья Тихонов
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2020

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

1 answer

1 accepted

0 votes
Answer accepted
Илья Тихонов
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2020

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}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events