Environment Record Fields
An environment represents a Salesforce organization and is created automatically when an org credential is authenticated. Below you will find a description of all the relevant fields included in an Environment record.
- Environment Name: Name chosen for your environment.
- Org ID: External ID of the organization linked to an environment.
- Type: Select the type of environment. It can be a Production/Developer environment, a Sandbox environment or a Scratch Org environment.
- Run all local tests: If selected, Run all tests will be enforced when deploying to an environment.
- Namespace: If you are developing managed packages, this will help you write only one version of the pre/post Apex code in Selenium test suites. Copado will replace any "(!NS)" text with this value.
- Index Back Promotion Metadata: If enabled, when a back promotion which contains metadata found on user stories in the destination environment is completed, the status of the User Story Metadata records of these user stories will be updated to 'Back Promoted'.
- Promotion Default Credential: The default credential of the destination org is always selected by default. Optionally, the default credential can be selected only if the user has no org credential in the destination org.
- Validation Promotion Default Credential: The default credential of the destination org is always selected by default. Optionally, the default credential can be selected only if the user has no org credential in the destination org.
- Current SCA Score: Current static code analysis score.
- Maximum SCA Score: Maximum static code analysis score.
- Minimum Apex Test Coverage: Set the minimum Apex test coverage here, which will be used for Apex test results in the Org Credentials detail page. This will also be the default test coverage threshold that will be applied to user stories originating in this particular environment.
- Current Code Coverage: This field shows the percentage of code covered during an Apex test:
- Compliance Rule Group: A compliance rule group holds the reference to the compliance rules and criteria which are going to be enforced at an environment level.
- Compliance Scan Events: You can select either Deployments or Commits.
- Compliance Status: This field shows the status of the compliance scan.
- Last Compliance Scan Date: Date when the last compliance scan was run: