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 logs indicate successful tagging of tickets in Jira, but tag not showing up on ticket in Jira #49

Open
raygpt opened this issue Feb 9, 2021 · 0 comments

Comments

@raygpt
Copy link

raygpt commented Feb 9, 2021

command: npm run semantic-release --no-ci

release.config.js:

const verifyConditions = [
  ['@semantic-release/changelog', releaseNotesGeneratorOptions],
  ["semantic-release-jira-releases", {
    "projectId": "XXXX",
    "releaseNameTemplate": "v${version}",
    "jiraHost": "xxxx.atlassian.net",
    "ticketRegex": "[A-Z]{2,6}-\d{1,5}"
  }],
  [
    '@semantic-release/git',
    {
      assets: ['package.json', 'CHANGELOG.md'],
      message: 'chore(release): ${nextRelease.version} \n\n${nextRelease.notes}'
    }
  ],
  [
    '@semantic-release/gitlab',
    {
      gitlabUrl,
      assets
    }
  ]
]

const success = [
  ["semantic-release-jira-releases", {
    "projectId": "XXXX",
    "releaseNameTemplate": "v${version}",
    "jiraHost": "xxxx.atlassian.net",
    "ticketRegex": "[A-Z]{2,6}-\d{1,5}"
  }]
]

logs:

Can't find terminal history, but something along the lines of "Found ticket, Looking for release with same name, Created new release, Tagged ticket"

But going to the ticket in Jira shows no tag.

My JIRA_AUTH is set to username:jira-api-key-base64.

Edit:

I see the release was created in JIRA but it has no issues tagged in it, even though the commits were made on a fresh repo using commitizen with JIRA rules and definitely tagged the issue in each commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant