HI, i am using the Bamboo API to start build and pass customVersion to use it as variable just to send some notifications after build/deployment is done.
I don't really need too checkout specific Git version.
the request: http://bamboo.local.com/rest/api/latest/queue/BOO-OVB?customRevision={{version.name}}
Build starts, but fails, as it can't find the revision, obviously.
How to ignore the version please and only use it as variable.
Or there any other way to pass variables to Bamboo DC from Jira Cloud?
Hello Dzmitry,
Welcome to Atlassian community
1. You'll need to define the variable which you want to pass as either global variable in Bamboo or a plan variable in Bamboo.
2. You need to use bamboo.variable.myVariable=valueForMyVariable to the Post API, here myVariable is the variable which is defined in Bamboo for which you'll pass the value when calling from Jira cloud
see example below, here jira is a plan variable which I have defined in Bamboo and when I am calling this API, I am passing a value of 9
curl --request POST \
--user bamboo:bamboo \
--url 'http://bamboo964:8085/rest/api/latest/queue/SCRIP-TIC?bamboo.variable.jira=9' \
--header 'Accept: application/json'
Regards,
Shashank Kumar
**please don't forget to Accept the answer if your query was answered**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.