Hello!
I have configured a step in our bitbucket pipeline for clearing the cache for node in case there are any changes in package.json.
The issue is that the script is throwing an error regarding app username & pass, although I've set the Access token in the env variables in bitbucket and used the access token in the pipeline step.
Pipeline step:
- step:
name: 'Clear cache if dependency changed'
script:
- pipe: atlassian/bitbucket-clear-cache:3.1.1
variables:
BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN
CACHES: ["bff-node"]
DEBUG: "true"
condition:
changesets:
includePaths:
# only if bff package.json file has changed
- "apps/api/package.json"
Error:
✖ Validation errors:
BITBUCKET_APP_PASSWORD: - required field
BITBUCKET_USERNAME: - required field