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

Uploads archived junit results from Jenkinsfile

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It should be possible to updaload test execution test from a Jenkinsfile to HP ALM as the post action "Upload test result to ALM" does in free style jobs.

      An invocation example could be like this:

       

      // ... 
      post {
        always {
          junit testResults: '**/target/*-reports/TEST-*.xml', allowEmptyResults: true
          step ([$class: 'TestResultToALMUploader',
              almServerName: 'HP ALM Server', //almServerName
              credentialsId: 'ALM-CREDENTIALS',
              almDomain: 'ALMDomain', // almDomain
              almProject: 'AlmProject', //almProject,
              testingFramework: 'JUnit', //testingFramework
              testingTool:  '', //testingTool
              almTestFolder: 'TestHPALM', //almTestFolder
              almTestSetFolder:  'TestHPALM', //almTestSetFolder
              almTimeout:  '-1', //almTimeout
              testingResultFile:  "**/junitResult.xml", //testingResultFile
              jenkinsServerUrl:  ''  //jenkinsServerUrl                    
          ])                
        }            
      }
      

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              roy_lu Roy Lu
              Reporter:
              osdomin Oscar Dominguez
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: