Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Manager does not support spaces in release name #1045

Open
serverhorror opened this issue Oct 19, 2023 · 1 comment
Open

Release Manager does not support spaces in release name #1045

serverhorror opened this issue Oct 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@serverhorror
Copy link
Contributor

Describe the bug

Releases in JIRA with a space in the name cause release manager to fail

To Reproduce
Steps to reproduce the behavior:

  1. Go to Jira
  2. Go to "Releases"
  3. Create a release named "A release with spaces"
  4. Try to deploy the the release with "Developer Preview"
  5. Get an error message

Expected behavior

No error message should occur and the developer preview should proceed.

Screenshots

image

Affected version (please complete the following information):

  • OpenShift: [e.g. 3.9, 3.11]
  • OpenDevStack 4.x
    • String getVersionFromReleaseStatusIssue() {
      if (!this.jira) {
      logger.warn("WARNING: this.jira has an invalid value.")
      return ""
      }
      def releaseStatusIssueKey = this.project.buildParams.releaseStatusJiraIssueKey as String
      def releaseStatusIssueFields = this.project.getJiraFieldsForIssueType(JiraUseCase.IssueTypes.RELEASE_STATUS)
      def productReleaseVersionField = releaseStatusIssueFields[CustomIssueFields.RELEASE_VERSION]
      def versionField = this.jira.getTextFieldsOfIssue(releaseStatusIssueKey, [productReleaseVersionField.id])
      if (!versionField || !versionField[productReleaseVersionField.id]?.name) {
      throw new IllegalArgumentException('Unable to obtain version name from release status issue' +
      " ${releaseStatusIssueKey}. Please check that field with name" +
      " '${productReleaseVersionField.name}' and id '${productReleaseVersionField.id}' " +
      'has a correct version value.')
      }
      return versionField[productReleaseVersionField.id].name
      }

Log Output (ensure to remove any confidential information like tokens, project names, etc.

  • n/a

Additional context

  • n/a
@serverhorror serverhorror added the bug Something isn't working label Oct 19, 2023
@metmajer
Copy link
Member

Thanks @serverhorror, this is a known issue. We will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants