jenkins.sitespeed.io icon indicating copy to clipboard operation
jenkins.sitespeed.io copied to clipboard

Issues with build result

Open neillfontes opened this issue 9 years ago • 4 comments

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?

neillfontes avatar Feb 25 '16 17:02 neillfontes

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

soulgalore avatar Feb 25 '16 18:02 soulgalore

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

neillfontes avatar Feb 29 '16 08:02 neillfontes

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.

neillfontes avatar Mar 08 '16 15:03 neillfontes

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

razorfishfr avatar Aug 12 '16 08:08 razorfishfr