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'
}
}
stage('Copy all results'){
steps {
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's452097-metrics', selector: lastSuccessful()
}
}
stage('Create plots'){
steps {
sh('chmod +x ./plotGenerator.sh')

View File

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