In our BitBucket Pipeline we must provide a variable to `pipe: atlassian/aws-elasticbeanstalk-deploy:0.3.0` that must be unique everytime.
What we are currently using :
- step:
name: Deploy to AWS
deployment: production-aws
image: atlassian/default-image:2
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.3.0
variables:
...
VERSION_LABEL: "name.$BITBUCKET_BUILD_NUMBER-bitbucket"
We currently have an issue : if the step fails and we use "Retry only failed steps", the $BITBUCKET_BUILD_NUMBER is not incremented. This is causing an error on our end because the "VERSION_LABEL" is already in use.
Is there another way to generate a unique version label?
Thank you !