[JIRA] (JENKINS-59812) config history should provide helpful error when it can't create history

5 views
Skip to first unread message

jsoref+jenkins@gmail.com (JIRA)

unread,
Oct 16, 2019, 6:54:02 PM10/16/19
to jenkinsc...@googlegroups.com
Josh Soref created an issue
 
Jenkins / Improvement JENKINS-59812
config history should provide helpful error when it can't create history
Issue Type: Improvement Improvement
Assignee: Stefan Brausch
Components: jobconfighistory-plugin
Created: 2019-10-16 22:53
Priority: Minor Minor
Reporter: Josh Soref

Some of the directories in jenkins/config-history/jobs were owned by a user other than the jenkins user, which resulted in this error:

 java.lang.RuntimeException: Could not create rootDir /var/lib/jenkins/.jenkins/config-history/jobs/JOBNAME/2019-10-16_18-41-10
         at hudson.plugins.jobConfigHistory.FileHistoryDao.createNewHistoryDir(FileHistoryDao.java:262)
         at hudson.plugins.jobConfigHistory.FileHistoryDao.getRootDir(FileHistoryDao.java:151)
         at hudson.plugins.jobConfigHistory.FileHistoryDao.createNewHistoryEntry(FileHistoryDao.java:585)
         at hudson.plugins.jobConfigHistory.FileHistoryDao.createNewHistoryEntryAndCopyConfig(FileHistoryDao.java:284)
         at hudson.plugins.jobConfigHistory.FileHistoryDao.saveItem(FileHistoryDao.java:296)
         at hudson.plugins.jobConfigHistory.JobConfigHistorySaveableListener.onChange(JobConfigHistorySaveableListener.java:58)
         at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:81)
         at hudson.model.AbstractItem.save(AbstractItem.java:609)
         at hudson.model.Job.save(Job.java:190)
         at hudson.model.AbstractProject.save(AbstractProject.java:289)
         at hudson.BulkChange.commit(BulkChange.java:98)
         at hudson.model.Job.doConfigSubmit(Job.java:1347)
         at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:770)
         at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
 

 

It isn't helpful.

Personally, I'd like to get reports about directories like this as a single line item in the Monitor section leading to a table listing directories w/ improper permissions.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

stefanbrausch@protonmail.ch (JIRA)

unread,
Mar 14, 2020, 8:02:54 AM3/14/20
to jenkinsc...@googlegroups.com
Stefan Brausch updated Improvement JENKINS-59812
 

Available now in version 2.25

Change By: Stefan Brausch
Status: Fixed but Unreleased Resolved
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

stefanbrausch@protonmail.ch (JIRA)

unread,
Mar 14, 2020, 8:02:54 AM3/14/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages