[JIRA] (JENKINS-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-30 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 Jesse Glick How can i override MAX_LINES_READ in Jenkinsfile? Could not find a snippet code in documentation, only mentioning the constant in release notes.  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-30 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 I have updated all plugins in my Jenkins, and removed the function compressBuildLog() from my Jenkinsfile. Now the logs are back again as expected. Jesse Glick I think there was some environment variable to limit the the log size. Where can I find it? And second question, is the plugin [logfilesizechecker|htthttps://plugins.jenkins.io/logfilesizechecker] safe to use?  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-30 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana edited a comment on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 I have updated all plugins in my Jenkins, and removed the function _compressBuildLog()_ from my _Jenkinsfile_.Now the logs are back again as expected.[~jglick] I think there was some environment variable to limit the the log size. Where can I find it? And second question, is the plugin [logfilesizechecker| htthttps https ://plugins.jenkins.io/logfilesizechecker] safe to use?  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-30 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54678  
 
 
  Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
Change By: 
 Tibor Digana  
 
 
Comment: 
 [~jglick]ok, good to know your plan.I would like to have compressed log in e-mail attachments.Would you please add a compression to [emailext|https://wiki.jenkins.io/display/JENKINS/Email-ext+plugin]?  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-30 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 Jesse Glick ok, good to know your plan. I would like to have compressed log in e-mail attachments. Would you please add a compression to emailext?  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-29 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 

we would lose console access to historic logs already compressed
 Untested: 

 

find $JENKINS_HOME -name log.gz -print0 | xargs -0 -n1 gunzip
 

  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-29 Thread brant.niggem...@uspsector.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brant Niggemyer commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 As I noted in the other report, downgrading Pipeline: Job Plugin to 2.25 did restore correct behavior.  We did not see removing compressBuildLog() as an option, as we would lose console access to historic logs already compressed.   After consideration, we are going to remove compressBuildLog() from our pipeline standard, as it isn't buying us much in terms of space, and plan to upgrade Job Plugin in a few weeks as old compressed build logs will be rotated off the system or otherwise not too useful to look at.  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-27 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 Note that JEP-210 defines a beta, but supported, API for properly replacing build log storage as a whole, which theoretically this plugin could implement via log.gz. (Run.getLogFile is slated to be deprecated and is not supported by new versions of Pipeline.) That said, if you are compressing build logs because you are concerned about storage space on the master, the way forward is likely to be cloud log storage, as in the recently released pipeline-cloudwatch-logs plugin.  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-27 Thread tvuilla...@solent.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Vuillaume commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 Confirmed !   Thanks Jesse Glick, this did work ! I removed the compressBuildLog() and uninstalled the pluggin. I guess Tibor Digana will be pleased to have been saved before the 3rd of December ! Many thanks !  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-27 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54678  
 
 
  Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 I presume 

 

compressBuildLog()
 

 is to blame. Try deleting that and uninstalling this plugin. Its Pipeline compatibility should be removed, as it will not work as of workflow-job 2.26.  
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Component/s: 
 compress-build-log-plugin  
 
 
Component/s: 
 pipeline  
 
 
Labels: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
  

[JIRA] (JENKINS-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-25 Thread tvuilla...@solent.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Vuillaume edited a comment on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 I'm sharing my Pipeline file so that we can move on (and maybe found a root cause). Anyway, this is pretty strange because we have 2 different Jenkins here. Both of them are on 2.138.2, both of them use Pipeline Build 1.5.8. Both of them use a pipeline to build, but not the same pipeline. Only one faces the issue (the one which  I published  uses  the pipeline  I added to this ticket )  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-25 Thread tvuilla...@solent.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Vuillaume edited a comment on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 I'm sharing my Pipeline file so that we can move on (and maybe found a root cause). Anyway, this is pretty strange because we have 2 different Jenkins here. Both of them are on 2.138.2, both of them use Pipeline Build 1.5.8. Both of them use a pipeline to build, but not the same pipeline. Only one  face  faces  the issue (the one which I published the pipeline)  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-25 Thread tvuilla...@solent.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Vuillaume commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 I'm sharing my Pipeline file so that we can move on (and maybe found a root cause).   Anyway, this is pretty strange because we have 2 different Jenkins here. Both of them are on 2.138.2, both of them use Pipeline Build 1.5.8. Both of them use a pipeline to build, but not the same pipeline.   Only one face the issue (the one which I published the pipeline)  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-25 Thread tvuilla...@solent.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Vuillaume updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54678  
 
 
  Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
Change By: 
 Thomas Vuillaume  
 
 
Attachment: 
 standardModulePipeline.groovy  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-25 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 Jesse Glick Who should handle this issue? I am doing an internal workshop in my company about Jenkins on December 3rd and this issue is a big 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-21 Thread tvuilla...@solent.fr (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Thomas Vuillaume commented on  JENKINS-54678  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
 Same problem spotted on 2.138.2  
 

  
 
 
 
 

 
 
 

 
 
 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-54678) Logs are lost in Multibranch Pipleline after the build has finished

2018-11-16 Thread tibordig...@apache.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Tibor Digana created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54678  
 
 
  Logs are lost in Multibranch Pipleline after the build has finished   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 pipeline  
 
 
Created: 
 2018-11-16 18:45  
 
 
Environment: 
 Jenkins 2.138.3  Pipeline Multibranch with defaults 2.0  Pipeline Multibranch Plugin 2.20  Build Pipeline Plugin 1.58  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Tibor Digana  
 

  
 
 
 
 

 
 The logs in /job/master/167/console are shown when the build is in progress. After it has finished I see nothing. Only a black narrow bar. The BlueOcen shows me this stacktrace 

 

java.io.FileNotFoundException: /var/lib/jenkins/jobs/Invoice/branches/master/builds/166/log (No such file or directory)

	at java.io.RandomAccessFile.open0(Native Method)

	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)

	at java.io.RandomAccessFile.(RandomAccessFile.java:243)

	at org.jenkinsci.plugins.workflow.log.FileLogStorage.stepLog(FileLogStorage.java:259)

	at org.jenkinsci.plugins.workflow.support.actions.LogStorageAction.getLogText(LogStorageAction.java:62)

	at io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl.getLog(PipelineStepImpl.java:139)

	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)