Skip to content

Avoid repeated dashes in $CI_ENVIRONMENT_SLUG

Nick Thomas requested to merge (removed):26852-fix-slug-for-openshift into master

What does this MR do?

Avoids repeated - characters in $CI_ENVIRONMENT_SLUG and fixes an edge-case where 'env-' wouldn't be prepended to environments beginning with '-'.

Are there points in the code the reviewer needs to double check?

Should we rename existing slugs? I don't believe we should, as this has a chance of breaking existing, running environments.

Why was this MR needed?

Turns out a name like foo--bar is invalid in OpenShift.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #26852 (closed)

Merge request reports