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

Include user-fields To Uploads archived junit results from Jenkinsfile (@see JENKINS-52753)

    Details

    • Similar Issues:

      Description

      Includes custom user fields from archived attachments results from a Jenkinsfile

      AS a user that consumes the plugin through a jenkinsfile pipeline
      I NEED to be able to include custom user fields in said pipeline
      TO be loaded into the tool for the different entities, test and testcase

       

      Modify example JENKINS-52753 to include the fields

      testSetFields: [ 'user-01': 'VALUE', 'user-02': 'VALUE'], //List user-fields associate with testSet

      testCaseFields: [ 'user-3': 'VALUE', 'user-04': 'VALUE']

       

      // EXAMPLE
      post {
                      always {
                          junit testResults: '**/target/*-reports/TEST-*.xml', allowEmptyResults: true 
                          step ([$class: 'TestResultToALMUploader',
                            almServerName: 'HP ALM Isban', 
                            credentialsId: 'CREDENTIALS',
                            almDomain: 'DOMAIN_ALM', 
                            almProject: 'ALM_PROJECT', 
                            testingFramework: 'JUnit', 
                            testingTool:  '', //testingTool
                            almTestFolder: 'Demo HP TEST ALM', 
                            almTestSetFolder:  'Demo HP TEST ALM', 
                            almTimeout:  '-1', 
                            testingResultFile:  "**/junitResult.xml", 
                            jenkinsServerUrl:  '', 
                            testSetFields: [ 'user-01': 'VALUE', 'user-02': 'VALUE'], //List user-fields associate with testSet
                            testCaseFields: [ 'user-3': 'VALUE', 'user-04': 'VALUE']
      //List user-fields associate with testcase
      )      
                      }
                  }
      

       

       

        Attachments

          Issue Links

            Activity

            Show
            benauca Jesús Benavente added a comment - FYI You can look at this https://github.com/jenkinsci/hpe-application-automation-tools-plugin/pull/143
            Hide
            roy_lu Roy Lu added a comment -

            Hi,  Jesús Benavente

            The PR is not created well. It has more than 700+ files change. Would you please create a correct PR to jenkinsci:latest? Thanks.

            Show
            roy_lu Roy Lu added a comment - Hi,  Jesús Benavente The PR is not created well. It has more than 700+ files change. Would you please create a correct PR to jenkinsci:latest? Thanks.
            Hide
            roy_lu Roy Lu added a comment - - edited

            I created same ticket to track it https://issues.jenkins-ci.org/browse/JENKINS-53491

            So close this one.

            I'll implement this in the new ticket.

            Show
            roy_lu Roy Lu added a comment - - edited I created same ticket to track it https://issues.jenkins-ci.org/browse/JENKINS-53491 So close this one. I'll implement this in the new ticket.

              People

              • Assignee:
                roy_lu Roy Lu
                Reporter:
                benauca Jesús Benavente
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: