# Display Performance Test reports in main Jenkins job

**URL:** <https://community.jenkins.io/t/display-performance-test-reports-in-main-jenkins-job/1440>\
**Category:** Ask a question\
**Created:** [February 7, 2022, 8:43am UTC](https://community.jenkins.io/t/display-performance-test-reports-in-main-jenkins-job/1440 "2022-02-07T08:43:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![golide](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/golide/32/3712_2.png) [@golide](https://community.jenkins.io/u/golide)\
**Post date:** [February 7, 2022, 8:43am UTC](https://community.jenkins.io/t/display-performance-test-reports-in-main-jenkins-job/1440/1 "2022-02-07T08:43:37Z")

</div>

I have a Jenkins pipeline job for which I am executing Perfomance tests by invoking another Freestyle project. How do I ensure that the reports and artifacts from the linked job are included in the main job ?

Part of the pipeline is as below :

```auto
pipeline {
agent any
triggers {
    githubPush()
}
environment { 
.......
   REPOSITORY_URI = "${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${IMAGE_REPO_NAME}"
}
    stages {
......
.......
      stage ("UnitTest Report") {
                 steps{               
                         publishHTML target: [
          allowMissing: false,
          alwaysLinkToLastBuild: true,
          keepAll: true,
          reportDir: '/var/lib/jenkins/workspace/FlexToEcocash_main/IntegrationTests/BuildReports/Coverage',
          reportFiles: 'index.html',
          reportName: 'Code Coverage'
          ]
                   archiveArtifacts artifacts: 'IntegrationTests/BuildReports/Coverage/*.*'
                   }
             }
                stage ("Perfomance Test") {
                steps {
                         build job: 'EcoToFlexPerfomanceTests'     
                }
             }
    }
    
    }

```

The stage Perfomance Test triggers a Freestyle Job named **EcoToFlexPerfomanceTests** and this will be the one that runs Jmeter tests.

I want to be able to access and display these reports from the main job. Is it possible to do so by running linux commands that will copy these files to my main job:

 ![JMETERJENKINSWORKSPACE](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/1X/7cc1a5c93c0278a053c2e928ca0940a91601b40e.png)

I had _ **originally intended to run the Perfomance Test as a linux commands** _ as below :

```auto
 

node {
   ws('c:\\jmeter\\extras') {
       stage 'Run JMeter Test with Apache Ant'
       def antHome = tool 'ant'
       bat "pushd c:\\jmeter\\extras && ${antHome}\\bin\\ant -f build.xml"
       step([$class: 'ArtifactArchiver', artifacts: 'Test.html', fingerprint: true])
   }
}

```

but I’m not sure how to do so either in Linux or whether I need to use _ **local binaries of a Jmeter installation for this** _ ( **i have already installed Jmeter on the linux instance** ) :  
[Reference post](https://www.blazemeter.com/blog/running-jmeter-test-jenkins-pipeline-tutorial)  
How should I proceed ?  
Can I add linux commands that copy the Performance Test artifacts to my parent project ? – will the reports actually appear or they are several other config issues that will not this straightforward to do .

If not how can I add a stage using _ **pipeline syntax** _ to execute the exact same tests , I would then remove reference to the Freestyle job .

---

<div class="post-metadata">

**Author:** ![zurilexi](https://avatars.discourse-cdn.com/v4/letter/z/2bfe46/32.png) [@zurilexi](https://community.jenkins.io/u/zurilexi)\
**Post date:** [September 26, 2024, 2:20pm UTC](https://community.jenkins.io/t/display-performance-test-reports-in-main-jenkins-job/1440/2 "2024-09-26T14:20:44Z")

</div>

Thanks it is helpful[.](https://coldcallingagency.uk/)
