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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.