Skip to content

fix(pipeline): allow pipeline parameters to use colons in the values

Created by: TokyoQ

Fixes #829

Description Currently if you try to pass in a pipeline variable which includes colons, the input is not passed through correctly. Anything beyond the first colon is thrown away.

This fix will only split the input at the first colon (:) and keep the rest of the value intact.

Related Issue Resolves #829 (closed)

How Has This Been Tested? The following example is representative of one I have had to use at my company. I have compiled the code with this fix in and have used it successfully in a private Gitlab instance.

glab ci run --variables GROUP_NAME:test-group,DAY_OF_WEEK:Wednesday,START_TIME:05:50pm

GitLab version is 13.12.8 Enterprise Edition

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports