Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,060
Community Members
 
Community Events
168
Community Groups

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 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
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

311 views 0 7
Read article

Atlassian Community Events