Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Méndez Requena authored Oct 29, 2019
1 parent 0428628 commit 4da42b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/stamp/atos/performance/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ pipeline {
BUILD_ID = env.BUILD_ID
sh '''
docker exec -i -e BUILD_ID="${BUILD_ID}" camp sh -c 'cd /stamp_docker_citygoApp/out/ && mkdir $BUILD_ID &&
cp -R /camp/samples/stamp/atos/performance/out/* /stamp_docker_citygoApp/out/$BUILD_ID/ && exit';
docker exec -i -e BUILD_ID="${BUILD_ID}" camp sh -c 'mv samples/stamp/atos/performance/camp_execute.log /stamp_docker_citygoApp/out/$BUILD_ID/ && exit';
cp -R /camp/samples/stamp/atos/performance/out/* /stamp_docker_citygoApp/out/$BUILD_ID/ &&
cp /camp/samples/stamp/atos/performance/camp_execute.log /stamp_docker_citygoApp/out/$BUILD_ID/ && exit';
ls -d /var/jenkins_home/workspace/citygo_camp/out/$BUILD_ID/*/ > reportDirNames.txt;
cat /var/jenkins_home/workspace/citygo_camp/out/$BUILD_ID/camp_execute.log | grep "Online report link" > linksPerformanceTestReports.log;
mv /var/jenkins_home/workspace/citygo_camp/linksPerformanceTestReports.log /var/jenkins_home/workspace/citygo_camp/out/$BUILD_ID/;
rm /var/jenkins_home/workspace/citygo_camp/out/$BUILD_ID/camp_execute.log;
exit;
'''
zip zipFile: 'JMetterTestsLogs.zip', archive: true, dir: '/var/jenkins_home/workspace/citygo_camp/out/$BUILD_ID/', glob: '**/linksPerformanceTestReports.log'
Expand Down

0 comments on commit 4da42b3

Please sign in to comment.