[JIRA] [build-timeout-plugin] (JENKINS-32968) BuildTimeOut plugin throws NullPointerException

2016-03-12 Thread pcpol...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Paul Poling edited a comment on  JENKINS-32968 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: BuildTimeOut plugin throws NullPointerException  
 
 
 
 
 
 
 
 
 
 I encountered this after accidentally entering "19" for the "Time-out variable".  Definitely would have appreciated a more helpful error than "FATAL: null"   I've updated the Description with Steps to Reproduce for my case Thx  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [build-timeout-plugin] (JENKINS-32968) BuildTimeOut plugin throws NullPointerException

2016-03-12 Thread pcpol...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Paul Poling updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32968 
 
 
 
  BuildTimeOut plugin throws NullPointerException  
 
 
 
 
 
 
 
 
 

Change By:
 
 Paul Poling 
 
 
 
 
 
 
 
 
 
 *Steps to Reproduce*:  [from ntulele]# Enable plugin for a job# Set the following:## Timeout strategy: Absolute## Timeout minutes: 3## *Time-out variable: 19*## Time-out actions:### Abort the build### Writing the build description (& enter some text)# Save/Apply and attempt to execute build# Note failure with stack trace per below# delete "19" from the Time-out variable text box# Save/Apply & re-attempt build --> PASS build-timeout-plugin 1.16 on Jenkins 1.647 is throwing the following exception Log excerpt:{code}FATAL: nulljava.lang.NullPointerException at hudson.plugins.build_timeout.BuildTimeOutStrategy.hasMacros(BuildTimeOutStrategy.java:112) at hudson.plugins.build_timeout.BuildTimeOutStrategy.expandAll(BuildTimeOutStrategy.java:108) at hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy.getTimeOut(AbsoluteTimeOutStrategy.java:44) at hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl.(BuildTimeoutWrapper.java:166) at hudson.plugins.build_timeout.BuildTimeoutWrapper.setUp(BuildTimeoutWrapper.java:211) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410){code}_from    Maciej:_ It happens probably because Action field was not set. I would expect from the plugin a minimal message saying which field should not be null if it is about invalid configuration. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  

[JIRA] [build-timeout-plugin] (JENKINS-32968) BuildTimeOut plugin throws NullPointerException

2016-03-12 Thread pcpol...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Paul Poling updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-32968 
 
 
 
  BuildTimeOut plugin throws NullPointerException  
 
 
 
 
 
 
 
 
 

Change By:
 
 Paul Poling 
 
 
 
 
 
 
 
 
 
 *Steps to Reproduce*:  [from ntulele]# Enable plugin for a job# Set the following:## Timeout strategy: Absolute## Timeout minutes: 3## *Time-out variable: 19*## Time-out actions:### Abort the build ### Writing the build description (& enter some text)# Save/Apply and attempt to execute build# Note failure with stack trace per below# delete "19" from the Time - out variable text box# Save/Apply & re-attempt build --> PASSbuild- timeout-plugin 1.16 on Jenkins 1.647 is throwing the following exception Log excerpt:{code} FATAL: nulljava.lang.NullPointerException at hudson.plugins.build_timeout.BuildTimeOutStrategy.hasMacros(BuildTimeOutStrategy.java:112) at hudson.plugins.build_timeout.BuildTimeOutStrategy.expandAll(BuildTimeOutStrategy.java:108) at hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy.getTimeOut(AbsoluteTimeOutStrategy.java:44) at hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl.(BuildTimeoutWrapper.java:166) at hudson.plugins.build_timeout.BuildTimeoutWrapper.setUp(BuildTimeoutWrapper.java:211) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code}  _from  It happens probably because Action field was not set. I would expect from the plugin a minimal message saying which field should not be null if it is about invalid configuration. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  

[JIRA] [build-timeout-plugin] (JENKINS-32968) BuildTimeOut plugin throws NullPointerException

2016-03-12 Thread pcpol...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Paul Poling commented on  JENKINS-32968 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: BuildTimeOut plugin throws NullPointerException  
 
 
 
 
 
 
 
 
 
 
I encountered this after accidentally entering "19" for the "Time-out variable".  Definitely would have appreciated a more helpful error than "FATAL: null"  Thx  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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.