1 Star 1 Fork 1

DevOpsAll/jenkins-jmeter-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
azure-pipelines.yml 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
DevOpsAll 提交于 2022-02-07 20:10 +08:00 . add azure-pipelines.yml.
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
- script: |
wget -c https://apache.newfountain.nl//jmeter/binaries/apache-jmeter-5.4.1.tgz
tar -xf apache-jmeter-5.4.1.tgz
displayName: 'Install the JMeter packages'
- script: |
apache-jmeter-5.4.1/bin/./jmeter -Jjmeter.reportgenerator.overall_granularity=1000 -n -t DevOpsToolsTestPlan.jmx -l results/results.jtl -j results/output.log -e -o report
displayName: 'Run JMeter Test'
- script: |
ls -l
pwd
displayName: 'PWD'
- script: |
JMETER_RESULTS=results/results.jtl
JUNIT_RESULTS=output.xml
python3 jtl_junit_converter.py $JMETER_RESULTS $JUNIT_RESULTS
displayName: 'RESULTS: Convert JMeter Results to JUnit Format'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'output.xml'
failTaskOnFailedTests: true
displayName: 'RESULTS: Publish Load Testing Results'
- publish: $(System.DefaultWorkingDirectory)/results
artifact: jmeter-results
condition: succeededOrFailed()
displayName: 'RESULTS: Publish Load Test Artifacts'
- task: PublishPipelineArtifact@1
displayName: 'Publish JMeter HTML Report'
inputs:
targetPath: report
artifact: jmeter-report
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/devopstools/jenkins-jmeter-demo.git
git@gitee.com:devopstools/jenkins-jmeter-demo.git
devopstools
jenkins-jmeter-demo
jenkins-jmeter-demo
master

搜索帮助