Actually, my development env variables are same as production env variables. So, Is it enough to set variables in repository variables only? No need to set same variables in deployment again.
No, you don’t need to redefine the variables again in your pipeline. Bitbucket deployment variables allow you to define different values for the same key, scoped to specific environments like staging or production.
If the variable value is the same across all environments, you can simply define it at the repository level and skip the deployment variable section.
For example, you can reference $INSTANCE_ID in your pipeline YAML, and configure different values for it in each deployment environment — Bitbucket will automatically use the one that matches the current deployment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.