-
Bug
-
Resolution: Fixed
-
Major
-
Production
Dears
When we try to assign the bug using Jira result reporter plugin through DSL pipeline , the assignee filed is not working, showing the DSL method is notfound
The same functionality is working with Freestyle job and we are unable to generate the pipeline syntax for this fields
"@Symbol("jiraStringField")" this is missing for the userfields.java file inside the config and the same @symbol is present for rest all fields
my code snippet
junit (
testResults: '{}/surefire-reports/{*}.xml',
testDataPublishers: [
jiraTestResultReporter(
configs: [
jiraStringField(fieldKey: 'summary', value: '${DEFAULT_SUMMARY}'),
jiraStringField(fieldKey: 'description', value: '${DEFAULT_DESCRIPTION}'),
Userfields(fieldkey: ‘Assignee’, value: ‘Ranjith’),
jiraStringArrayField(fieldKey: 'labels', values: [jiraArrayEntry(value: 'Jenkins'), jiraArrayEntry(value:'Integration')])
],
projectKey: 'Sample',
issueType: '1',
autoRaiseIssue: false,
autoResolveIssue: false,
autoUnlinkIssue: false,
)
]
)
Userfields(fieldkey: ‘Assignee’, value: ‘Ranjith’)" this method is throwing error in the pipeline ,
please find the below references which can help for better understanding
links
https://plugins.jenkins.io/JiraTestResultReporter/
https://www.jenkins.io/doc/pipeline/steps/junit/
https://github.com/jenkinsci/JiraTestResultReporter-plugin/pull/14
[JENKINS-63613] JIRATESTRESUTREPORTER-PLUGIN jenkins identifier for UserFields (Jira)is not available for DSL-Pipeline jobs , Unable to assign the created issue in pipeline
Summary | Original: JIRATESTRESUTREPORTER-PLUGIN UserFields is not able to work in using DSL Pipeline | New: JIRATESTRESUTREPORTER-PLUGIN jenkins identifier for UserFields (Jira)is not available for DSL-Pipeline jobs , Unable to assign the created issue in pipeline |
Labels | Original: jira jiratestresult juinttestresultreporter junit | New: DSL JiraTestResultReporter jenkins,pipeline,powershell jira jiratestresult juinttestresultreporter junit |
Description |
Original:
Dears When we try to assign the bug using Jira result reporter plugin through DSL pipeline , the assignee filed is not working, showing the DSL method is notfound The same functionality is working with Freestyle job and we are unable to generate the pipeline syntax for this fields "@Symbol("jiraStringField")" this is missing for the userfields.java file inside the config and the same @symbol is present for rest all fields my code snippet {panel} junit ( testResults: '**/surefire-reports/*.xml', testDataPublishers: [ jiraTestResultReporter( configs: [ jiraStringField(fieldKey: 'summary', value: '${DEFAULT_SUMMARY}'), jiraStringField(fieldKey: 'description', value: '${DEFAULT_DESCRIPTION}'), Userfields(fieldkey: ‘Assignee’, value: ‘Ranjith’), jiraStringArrayField(fieldKey: 'labels', values: [jiraArrayEntry(value: 'Jenkins'), jiraArrayEntry(value:'Integration')]) ], projectKey: 'Sample', issueType: '1', autoRaiseIssue: false, autoResolveIssue: false, autoUnlinkIssue: false, ) ] ) Userfields(fieldkey: ‘Assignee’, value: ‘Ranjith’)" this method is throwing error in the pipeline , please find the below references which can help for better understanding linkshttps://plugins.jenkins.io/JiraTestResultReporter/https://www.jenkins.io/doc/pipeline/steps/junit/https://github.com/jenkinsci/JiraTestResultReporter-plugin/pull/14 {panel} |
New:
Dears
When we try to assign the bug using Jira result reporter plugin through DSL pipeline , the assignee filed is not working, showing the DSL method is notfound The same functionality is working with Freestyle job and we are unable to generate the pipeline syntax for this fields "@Symbol("jiraStringField")" this is missing for the userfields.java file inside the config and the same @symbol is present for rest all fields my code snippet {panel} junit ( testResults: '*{*}/surefire-reports/{*}.xml', testDataPublishers: [ jiraTestResultReporter( configs: [ jiraStringField(fieldKey: 'summary', value: '${DEFAULT_SUMMARY}'), jiraStringField(fieldKey: 'description', value: '${DEFAULT_DESCRIPTION}'), Userfields(fieldkey: ‘Assignee’, value: ‘Ranjith’), jiraStringArrayField(fieldKey: 'labels', values: [jiraArrayEntry(value: 'Jenkins'), jiraArrayEntry(value:'Integration')]) ], projectKey: 'Sample', issueType: '1', autoRaiseIssue: false, autoResolveIssue: false, autoUnlinkIssue: false, ) ] ) Userfields(fieldkey: ‘Assignee’, value: ‘Ranjith’)" this method is throwing error in the pipeline , please find the below references which can help for better understanding links https://plugins.jenkins.io/JiraTestResultReporter/ [https://www.jenkins.io/doc/pipeline/steps/junit/|https://www.jenkins.io/doc/pipeline/steps/junit/https://github.com/jenkinsci/JiraTestResultReporter-plugin/pull/14] [https://github.com/jenkinsci/JiraTestResultReporter-plugin/pull/14|https://www.jenkins.io/doc/pipeline/steps/junit/https://github.com/jenkinsci/JiraTestResultReporter-plugin/pull/14] {panel} |
Released As | New: https://github.com/jenkinsci/JiraTestResultReporter-plugin/releases/tag/JiraTestResultReporter-2.0.15 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Merged with https://github.com/jenkinsci/JiraTestResultReporter-plugin/commit/d1fc792a1e316268749bd22c47b1f752427086a1
and fixed since release
https://github.com/jenkinsci/JiraTestResultReporter-plugin/releases/tag/JiraTestResultReporter-2.0.15