This commit is contained in:
alicja.m.musial 2020-04-03 19:39:11 +02:00
parent 468dfdbf5a
commit a384cd4a2a
2 changed files with 4 additions and 6 deletions

2
Jenkinsfile vendored
View File

@ -9,11 +9,13 @@ pipeline {
git 'https://git.wmi.amu.edu.pl/s452097/s452097-plots' git 'https://git.wmi.amu.edu.pl/s452097/s452097-plots'
} }
} }
stage('Copy all results'){ stage('Copy all results'){
steps { steps {
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's452097-metrics', selector: lastSuccessful() copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's452097-metrics', selector: lastSuccessful()
} }
} }
stage('Create plots'){ stage('Create plots'){
steps { steps {
sh('chmod +x ./plotGenerator.sh') sh('chmod +x ./plotGenerator.sh')

View File

@ -10,10 +10,6 @@ def readFile(file):
return countL, y2 return countL, y2
def createplot(sourceFile): def createplot(sourceFile):
if sourceFile == 'wer.txt'
name = 'WER'
if sourceFile == 'srr.txt'
name = 'SRR'
readFile(sourceFile) readFile(sourceFile)
# Data for plotting # Data for plotting
@ -22,8 +18,8 @@ def createplot(sourceFile):
fig, ax = plt.subplots() fig, ax = plt.subplots()
ax.plot(x, y) ax.plot(x, y)
ax.set(xlabel='Build number', ylabel='Percent of '+name, ax.set(xlabel='Build number', ylabel='Percent [%]'+,
title=name+' metric for ASR') title='Metric for ASR')
ax.grid() ax.grid()
fig.savefig(name+'.png') fig.savefig(name+'.png')