Jmeter + Performance Plugin + Jenkins Pipeline


node('jmeter') {
    stage 'Clean Workspace'
        sh 'git clean -xffd'
    stage 'Checkout JMeter'
        checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'jmeter']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'git', url: 'ssh://gerrit.sandbox.extranet.group:29418/sc-caf-jmeter']]])
    stage 'Checkout CogCon'
        checkout([$class: 'GitSCM', branches: [[name: '*/Performance-Pipe']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'git', url: 'ssh://gerrit.sandbox.extranet.group:29418/sc-swb-cogcon']]])
    stage 'Run JMeter Test'
        sh 'cd jmeter/bin && java -jar ApacheJMeter.jar -Jjmeter.save.saveservice.output_format=xml -n -t ../../tests/Performance/CustomerNeedsToKnow/CustomerNeedsToKnow_10.jmx -l ../../Results/result.jtl'
         step([$class: 'ArtifactArchiver', artifacts: '../../Results/result.jtl, **/*.jtl, **/jmeter.log', fingerprint: true])
    stage 'Create Performance Report'
        perfReport modeThroughput: true, sourceDataFiles: 'Results/result.jtl'
}
Last update:
16-02-2018 12:49
Author:
Karl Hudgell
Revision:
1.1
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Latest FAQs RSS

  1. Simple Cheap LED Control (29-04-2019 13:26)
  2. Freeing disk space on your Linux server (20-04-2019 12:48)
  3. Dockerized Download VM (30-01-2019 20:26)
  4. Jmeter + Performance Plugin + Jenkins Pipeline (16-02-2018 12:49)
  5. MySQL DB Backup Script (04-09-2017 10:16)