-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
{{title}} is not working #50
Comments
Try version 3.0 of plugin. This is likely a problem with integration with jira. |
As a {{title}} exactly what should come in the output from a Jira ticket page ? |
Thanks will try ...do u have any example using the plugin with jira api token |
Try the snippet generator:
https://www.jenkins.io/doc/book/pipeline/getting-started/#snippet-generator
Den mån 10 aug. 2020 14:332018201920201920 <notifications@github.com> skrev:
… Thanks will try ...do u have any example using the plugin with jira api
token
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADLKE5ZPACX7DLTGLZ727TR77SKBANCNFSM4PZVXUYA>
.
|
I tried upgrading the plugin version to 3.0....but still no luck...{{title}} field is coming blank :( |
In our project...they are saying jira api token is not allowed to create as it will burden the jiras for the rest api calls...anyway the jira ticketid hyperlink is opening...but still not jira title is coming...any other way to populate the jira titles |
That is expected when you do not supply cfedentials and this plugin will not be able to integrate with jira to get the title. |
But I am supplying the credentials with class UsernamePasswordMultiBinding : withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'CICD_Credential_ID', But still why the {{title}} is not getting printed though jira tickets are opening in the changelog.html |
Working thanks a lot |
Hey @TitliBasu37 I've faced the same issue. Could you possibly recall how had you managed to solve the issue? |
Hu @TitliBasu37 How is this working now? |
Plugin version used: 2.10
Jenkins version used: 2.141
Your configuration:
def previousReleaseVersion = getCurrentReleaseVersion(RELEASE)
def currentReleaseTag = "${RELEASE}/" + previousReleaseVersion
print "Current Release tag: ${currentReleaseTag}"
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: '*****',
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']])
{
def changelogString = gitChangelog returnType: 'STRING',
from: [type: 'REF', value: "${currentReleaseTag}"],
to: [type: 'REF', value: 'master'],
ignoreCommitsIfMessageMatches: '^Merge.',
ignoreCommitsWithoutIssue: 'true',
jira: [issuePattern: 'CICD'+ '-([0-9]+)\b',password: "${PASSWORD}", server: 'https://jira.com', username: "${USERNAME}"],
template: """
Change Log for {{repoName}}
JOB NAME: ${JOB_NAME}
BUILD ID: ${BUILD_ID}
GIT BRANCH:${GIT_BRANCH}
{{#tags}}
{{name}}
{{#issues}}
{{/hasIssue}} {{^hasIssue}} {{/hasIssue}} {{/issues}}{{#hasIssue}}
{{hash}} {{authorName}} {{commitTime}}
{{/commits}}
Expected result and actual result.
Expected : the 2nd collum should fetch the JIRA ticket summary tab with JIRA issue ticlet no
Actual : blank
{{title}} is not working
Any information from the logs: There is no error in logs 👍
Masking supported pattern matches of %USERNAME% or %PASSWORD%
[Pipeline] {
[Pipeline] gitChangelog
[Pipeline] writeFile
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // script
The text was updated successfully, but these errors were encountered: