I have a secure variable in the bitbucket repository. There is a life time associated with that token and I have to refresh it by doing a rest call. As we are managing that secured variable in bitbucket, I thought doing the rest call in the bitbucket-pipelines.yml with curl and can update the variable on every deployment.
Is the update of variable allowed in bitbucket via the bitbucket-pipelines.yml file?
I understand this is not a perfect solution, however we need it as a workaround now.
You should be able to update the repository variable value via a rest call - https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines_config/variables/%7Bvariable_uuid%7D
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events