[JIRA] (JENKINS-58847) After renaming project logs of runs prior to rename are not found

2 views
Skip to first unread message

m.winter@sap.com (JIRA)

unread,
Aug 7, 2019, 8:06:01 AM8/7/19
to jenkinsc...@googlegroups.com
Markus Winter created an issue
 
Jenkins / Bug JENKINS-58847
After renaming project logs of runs prior to rename are not found
Issue Type: Bug Bug
Assignee: Jesse Glick
Components: pipeline-cloudwatch-logs-plugin
Created: 2019-08-07 12:05
Priority: Major Major
Reporter: Markus Winter

Without verifying this, I think if the project gets renamed or moved, the logs will no longer be found.
Reason is that the logStreamNameBase is basically the projects fullName, that changes on rename or move.

A solution would be to use the unique id plugin

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Aug 7, 2019, 3:05:02 PM8/7/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Won't Fix
 

By design, the log stream names are human-readable and map directly to Jenkins job names. Using the unique-id plugin would make them opaque, reducing ease of transition between Jenkins and external tools. (For the same reason, we decided that JCloudsArtifactManager would not encode its S3 blob name.)

Remember you can change a job’s display name without actually renaming it.

If JEP-207 were pushed forward, there would be a marker in a build.xml that a particular logging system were used for this build. At that point, we could also add an ItemListener that, upon seeing a job be moved or renamed, would add an extra field to all of its historical build records noting the redirect. Alternately, the log stream name could be unconditionally written when the build is started, at the cost of some redundancy in the normal case. (The log group name is system configuration, and while it might change after first use, it is not expected that the master is able to access arbitrary log groups.)

Change By: Jesse Glick
Status: Open Resolved
Resolution: Won't Fix
Reply all
Reply to author
Forward
0 new messages