Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63613

JIRATESTRESUTREPORTER-PLUGIN jenkins identifier for UserFields (Jira)is not available for DSL-Pipeline jobs , Unable to assign the created issue in pipeline

      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

          RANJITH CHITTULURI created issue -
          RANJITH CHITTULURI made changes -
          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
          RANJITH CHITTULURI made changes -
          Labels Original: jira jiratestresult juinttestresultreporter junit New: DSL JiraTestResultReporter jenkins,pipeline,powershell jira jiratestresult juinttestresultreporter junit
          Christian made changes -
          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}
          Christian made changes -
          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 ]
          Christian made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            catalinluta Catalin Luta
            ranjithchittuluri RANJITH CHITTULURI
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: