jenkins.sitespeed.io
jenkins.sitespeed.io copied to clipboard
Issues with build result
Hello,
I am facing these exceptions:
Couldn't store the file budgetresult.txtjava.io.FileNotFoundException: budgetresult.txt (Permission denied) Couldn't close the writer for budgetresult.txtjava.lang.NullPointerException Build step 'sitespeed.io' marked build as failure
Any clues of what I might be missing?
hey @neillfontes have you configured anything specific or should the result file end up in the default build dir? Could there somehow be a missmatch between the user who runs the job in Jenkins and the dir where the file shoudl be stored? Best Peter
Hello Peter,
Thanks for the quick reply. I haven't done anything different on this Jenkins installation. I quite don't need the result file since I am targetting to upload results to Graphana, but I can't past this point of failure. Jenkins was installed as root and jobs are run by jenkins user. I will adjust the permissions and such and I will update this thread.
Thanks,
Neill
Hi @soulgalore
I've tried two different Jenkins installations in different machines, granted all the permissions at OS level, still getting this exception, marking the build as failed then. I have no other option rather than using the bash command instead which is harder to maintain.
Hi,
Running sitespeed.io jenkins plugin in a budget mode on Debian 7, we also get this log in the jenkins console
Couldn't store the file budgetresult.txtjava.io.File NotFoundException: budgetresult.txt (Permission denied) Couldn't close the writer for budgetresult.txt java.lang.NullPointerException
According to the source code of SitespeedBuilder class, we cannot determine neither the path of writing the file "budgetresult.txt" (line 294) nor the context of java execution.
We guess it is located into the job workspace but there is no reason it cannot write. So we do not know the real location of the current path for this "permission denied" issue.
We get the same configuration as @neillfontes, eg.
Jenkins was installed as root and jobs are run by jenkins user.
Does anybody can help ?
Thank you, Fabrice