Hi, I am trying to update a repository variable value (so that it will change for every pipeline), using curl (I need it to be called in bash), through that link:
but I didn't quite understood how to use it, can someone show an example/ another way to do it?
Thanks in advance
I don't have an example at hand but what I noticed is that the link you provided is not about setting a repository variable, but about something different called a deployment variable within a configured deployment.
Did you mean
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines_config/variables/ - to obtain existing variables (UUID etc.) or create new ones (UUID etc.).
and
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines_config/variables/%7Bvariable_uuid%7D - to change the value of a variable?
In any case I can't tell you whether or not calling the API - even if successful - will set the variables value in the context you would like to use it. That is merely because it is not clear from your question what you're trying to do down to such a specific level.
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.