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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.