-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins v1.565.3
performance-plugin v1.13
We have a nightly Jenkins job that uses a slave to run JMeter and publish the results using the performance plugin.
The slave that we use is a VM and is reset every night.
In the Jenkins configuration for the node:
Availability: 'Take this slave on-line when in demand and off-line when idle' In demand delay: 1 (minute) Idle delay: 60 (minutes)
It is observed that when the job is completed the graph is shown (as expected). However, after the idle delay is elapsed, the slave is disconnected and goes offline and the performance graph disappears.
Only by bring the node online again will the graph be available.
I am not sure if this is a unique problem that affect all plugins. Could something be done to 'cache' the information on the server, similar to how the artifact, trends, etc are available even if the slave is offline?
I too faced same issue today. During my debugging i found that this will happen if jobs are configured to run on short-lived slaves (Cloud instances ) .
This is due to below piece of code in PerformanceProjectAction.java
this.project.getSomeBuildWithWorkspace().getRootDir()
getSomeBuildWithWorkspace checks for a live work space for any build and this causes issues if none of the previous builds have live workspace.
Temporary and ugly work-around is to run the job on jenkins master once.
I will try to submit pull request for this.