newLine="$limit_value,$buildNumber,$actual"
if [ -z "$actual" ]; then
# No entry found for this build, the default added as zero
- echo "$limit_value,$buildNumber,0" >>"$dataFile"
+ echo "0,$buildNumber,0" >>"$dataFile"
recordLatestRecordedBuild "$buildNumber"
elif [ "$newLine" == "$lastLine" ]; then
# Entry already exists
# Read the first line of the file
first_line=$(head -n 1 "$dataFile")
-
# Set upper limit of the graphs to %20 to have more space above the plot
ten_percent=1.2
limit=$(echo "$first_line" | cut -d ',' -f 1)
set xlabel "Build"
set ylabel "Limit (ms)"
set yrange [0 : ${limit} < *]
+set xtics rotate
plot '$dataFile' using 2:3:xtic(sprintf("%d", column(2))) with linespoints title "measured", \
'$dataFile' using 2:1 with lines linestyle 2 title "limit"
EOT
# Close the HTML file
cat <<EOT >>"$outputFile"
</table>
- <p>The k6 job at 7:15 a.m. once a day, providing performance metrics.</p>
- <p>The following graphs being updated at 7:45 a.m. once a day.</p>
+ <p>The k6 performance tests runs every hour, providing performance metrics to the plots.</p>
+ <p>The k6 plots is being updated 31 minutes past every hour.</p>
<p>Successful performance tests job build adds new data, but even if a build fails, existing data is retained.</p>
</body>
</html>