@mention So I'm creating my custom pipeline using pipe integration and environmental variables I created. There's a testing, staging and production, environmental variable thanks to the advice of many people who have helped me thus far-especially today. Thinking flow of control/programming logic- It makes sense to create the environmental variables before you deploy to those environments, aka run the scripts that create the variables before yo deploy thrm there so you will have a place for these deployments to go, am I correct? The same with the build and test scripts: before you run the building of the application and the testing, shouldn't you have a place for it to take place[a testing/building environment]?
Hi @Mia Paulin,
Every repository with Pipelines enabled has 3 default deployment environments defined (go to Repository settings > Deployments). You can use the default ones in your bitbucket-pipelines.yml file or you can also define new ones and use them in your bitbucket-pipelines.yml file.
Below are some links about deployments:
If you want a certain command to use an environment variable, the variable needs to be defined before you use it. Instead of running a script that creates the variables during the build, you could also use a Workspace, Repository, or Deployment variable instead. You can check the following documentation on how to do this (see section User-defined variables):
If you have any questions, please feel free to reach out!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.