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. Dockerized Download VM (30-01-2019 20:26)
  2. Jmeter + Performance Plugin + Jenkins Pipeline (16-02-2018 12:49)
  3. MySQL DB Backup Script (04-09-2017 10:16)
  4. Replace Cabin Filter (20-02-2017 13:45)
  5. Replace Nexus 6 Glass (15-02-2017 15:11)