[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Kayvan Sylvan commented on JENKINS-54997 Re: Deprecated calls to Run.getLogFile Similar failure here: 2019-07-04 21:37:11.446+ [id=17764] WARNING o.j.p.workflow.job.WorkflowRun#getLogFile: Avoid calling getLogFile on Gibraltar/Feature_Onboard_Infra #163 java.lang.UnsupportedOperationException at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1085) at hudson.plugins.timestamper.io.LogFileReader.nextLine(LogFileReader.java:157) at hudson.plugins.timestamper.action.TimestampsActionOutput$1.readNextLine(TimestampsActionOutput.java:173) at hudson.plugins.timestamper.action.TimestampsActionOutput$1.read(TimestampsActionOutput.java:132) at java.io.BufferedReader.fill(BufferedReader.java:161) at java.io.BufferedReader.readLine(BufferedReader.java:324) at java.io.BufferedReader.readLine(BufferedReader.java:389) at hudson.plugins.timestamper.action.TimestampsAction.doIndex(TimestampsAction.java:102) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145) at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:27) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.plugins.locale.LocaleFilter.doFilter(LocaleFilter.java:42) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Alex Earl updated JENKINS-54997 Fixed in https://github.com/jenkinsci/email-ext-plugin/commit/21fbd402665848a18205b26751424149e51e86e4 Jenkins / JENKINS-54997 Deprecated calls to Run.getLogFile Change By: Alex Earl Status: Open Fixed but Unreleased Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Alex Earl commented on JENKINS-54997 Re: Deprecated calls to Run.getLogFile Yes, that is my plan. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Reinhold Füreder commented on JENKINS-54997 Re: Deprecated calls to Run.getLogFile Naive thought: Can it be that a potential fix might "solely" require: Remove the call (https://github.com/jenkinsci/email-ext-plugin/blob/287ed8955bfddd424ba5252c11a36cc9c0327407/src/main/java/hudson/plugins/emailext/AttachmentUtils.java#L200), as the result is not used any further Because in inner class LogFileDataSource the correct replacement getLogText() according to JENKINS-54128 is already used (mostly) Replace the call in https://github.com/jenkinsci/email-ext-plugin/blob/287ed8955bfddd424ba5252c11a36cc9c0327407/src/main/java/hudson/plugins/emailext/AttachmentUtils.java#L111 with a hard-coded "text/plain" (maybe there is a const or whatever) Because it is always just a text file This is also the "(mostly)" in the first problem Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Reinhold Füreder commented on JENKINS-54997 Re: Deprecated calls to Run.getLogFile Naive thought: Can it be that a potential fix might "solely" require: Remove the call (https://github.com/jenkinsci/email-ext-plugin/blob/287ed8955bfddd424ba5252c11a36cc9c0327407/src/main/java/hudson/plugins/emailext/AttachmentUtils.java#L200), as the result is not used any further Because in inner class LogFileDataSource the correct replacement getLogText() according to JENKINS-54128 is already used (mostly) Replace the call in https://github.com/jenkinsci/email-ext-plugin/blob/287ed8955bfddd424ba5252c11a36cc9c0327407/src/main/java/hudson/plugins/emailext/AttachmentUtils.java#L111 with a hard-coded "text/plain" (maybe there is a const or whatever) Because it is always just a text file This is also the "(mostly)" in the first problem Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Alex Earl assigned an issue to Alex Earl Jenkins / JENKINS-54997 Deprecated calls to Run.getLogFile Change By: Alex Earl Assignee: David van Laatum Alex Earl Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Reinhold Füreder updated an issue Jenkins / JENKINS-54997 Deprecated calls to Run.getLogFile Change By: Reinhold Füreder Like in See JENKINS-54128 (and others like JENKINS-54840 ) {noformat}2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129java.lang.UnsupportedOperationExceptionat org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)at hudson.plugins.emailext.AttachmentUtils.attachSingleLog(AttachmentUtils.java:200)at hudson.plugins.emailext.AttachmentUtils.attachBuildLog(AttachmentUtils.java:238)at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:766)at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451)at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224)at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163)at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)at hudson.security.ACL.impersonate(ACL.java:290)at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:748)2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129java.lang.UnsupportedOperationExceptionat org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082)at hudson.plugins.emailext.AttachmentUtils$LogFileDataSource.getContentType(AttachmentUtils.java:113)at javax.activation.DataHandler.getContentType(DataHandler.java:205)at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1318)at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1021)at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:419)at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1345)at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2106)at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2074)at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1769)at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:484)at
[JIRA] (JENKINS-54997) Deprecated calls to Run.getLogFile
Title: Message Title Reinhold Füreder created an issue Jenkins / JENKINS-54997 Deprecated calls to Run.getLogFile Issue Type: Bug Assignee: David van Laatum Components: email-ext-plugin Created: 2018-12-04 07:51 Environment: workflow-job 2.29 email-ext 2.63 Priority: Minor Reporter: Reinhold Füreder Like in JENKINS-54128 (and others) 2018-12-01 04:00:45 WARNING [org.jenkinsci.plugins.workflow.job.WorkflowRun getLogFile] Avoid calling getLogFile on Recovery/ACME #129 java.lang.UnsupportedOperationException at org.jenkinsci.plugins.workflow.job.WorkflowRun.getLogFile(WorkflowRun.java:1082) at hudson.plugins.emailext.AttachmentUtils.attachSingleLog(AttachmentUtils.java:200) at hudson.plugins.emailext.AttachmentUtils.attachBuildLog(AttachmentUtils.java:238) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:766) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:451) at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:224) at hudson.plugins.emailext.EmailExtStep$EmailExtStepExecution.run(EmailExtStep.java:163) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) at hudson.security.ACL.impersonate(ACL.java:290) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) at