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

            osdomin Oscar Dominguez created issue -
            gront Daniel Gront made changes -
            Field Original Value New Value
            Labels ALM
            gront Daniel Gront made changes -
            Assignee Daniel Gront [ gront ] Roy Lu [ roy_lu ]
            gront Daniel Gront made changes -
            Remote Link This issue links to "JENKINS-52753 PR (Web Link)" [ 21805 ]
            gront Daniel Gront made changes -
            Remote Link This issue links to "jenkins-52753 PR (Web Link)" [ 21807 ]
            roy_lu Roy Lu made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]

              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: