-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines-docker.yml
37 lines (28 loc) · 993 Bytes
/
azure-pipelines-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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-16.04'
steps:
- script: echo Running JMeter using Docker image
displayName: 'Show what we are doing'
- task: DockerInstaller@0
displayName: Docker Installer
inputs:
dockerVersion: 17.09.0-ce
releaseType: stable
- script: |
docker run --rm -v `pwd`/src/test/jmeter/:/jmeter:z egaillardon/jmeter-plugins -Jduration=30 -Jthreads=10 -Jrampup=10 -n -t mvn-demo.jmx -l result.csv -j jmeter.log -e -o report
ls -ltr `pwd`/src/test/jmeter/
displayName: 'Run JMeter in Docker'
- task: CopyFiles@2
inputs:
contents: '`pwd`/src/test/jmeter/report/**'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: taurusArtifacts