Hi, I connected to GitLab to Compass and I see metrics for the following:
It shows "Deployment Frequency" as having "no events" though. Is there something specific that needs to be configured on the GitLab CI side for the project to automatically know when deployments are going to Production?
Hi @robbie.kohler, and welcome to the Atlassian Community!
The sibling GitHub app documents a fairly advanced GitHub environment name mapping to infer the environment type.
This kind of documentation is missing for the GitLab app, but without being an active GitLab user myself, there seems to be the concept of environment tiers, which are indeed used in the GitLab app's source code, see e.g. mapEnvTierToCompassDeploymentEnv:
export const mapEnvTierToCompassDeploymentEnv = (env: EnvironmentTier): CompassDeploymentEventEnvironmentCategory => {
switch (env) {
case EnvironmentTier.PRODUCTION:
return CompassDeploymentEventEnvironmentCategory.Production;
case EnvironmentTier.STAGING:
return CompassDeploymentEventEnvironmentCategory.Staging;
case EnvironmentTier.TESTING:
return CompassDeploymentEventEnvironmentCategory.Testing;
case EnvironmentTier.DEVELOPMENT:
return CompassDeploymentEventEnvironmentCategory.Development;
case EnvironmentTier.OTHER:
default:
return CompassDeploymentEventEnvironmentCategory.Unmapped;
}
};
Accordingly, you can probably make the events show up when you ensure that your GitLab environments have either the staging or production tier.
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.