lib/release_tools/deployments/deployment_version_parser.rb
# The regular expression to use for extracting the name of a deployed tag.
The regular expression to use for extracting the name of a deployed tag.
The regular expression to use for extracting the name of a deployed tag .
def tag_for_version(version)
        matches = version.match(TAG_REGEX)
        return if matches.nil?
        suffix = matches[:rc] ? "rc#{matches[:rc]}-ee" : 'ee'
        tag_name =
          "v#{matches[:major]}.#{matches[:minor]}.#{matches[:patch]}-#{suffix}"
        begin
          GitlabClient
            .tag(Project::GitlabEe.canonical_or_security_path, tag: tag_name)
        rescue Gitlab::Error::Error
          nil
        end
      end
def tag_for_version ( version ) matches = version . match ( TAG_REGEX ) return if matches . nil? suffix = matches [ :rc ] ? "rc#{matches[:rc]}-ee" : 'ee' tag_name = "v#{matches[:major]}.#{matches[:minor]}.#{matches[:patch]}-#{suffix}" begin GitlabClient . tag ( Project :: GitlabEe . canonical_or_security_path , tag : tag_name ) rescue Gitlab :: Error :: Error nil end end
The regular expression to use for extracting the name of a deployed tag.
The regular expression to use for extracting the name of a deployed tag .
version