[JIRA] (JENKINS-39197) Weird contradiction to do with creating temp files

2016-10-22 Thread chriskitch...@linux.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Chris Kitching updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39197  
 
 
  Weird contradiction to do with creating temp files   
 

  
 
 
 
 

 
Change By: 
 Chris Kitching  
 

  
 
 
 
 

 
 The highly infuriating security system that cannot be turned off does not permit the use of File.createTempFile  in Jenkinsfile scripts :"Scripts not permitted to use staticMethod java.io.File createTempFile java.lang.String java.lang.String"However, it has no issues at all with me just doing "sh('mktemp')", which is functionally equivalent.Indeed, I find myself frequently using shell scripts to work around security "features" like this. More thought apparently needs to be given to what is forbidden.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





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

[JIRA] (JENKINS-39197) Weird contradiction to do with creating temp files

2016-10-22 Thread chriskitch...@linux.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Chris Kitching created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39197  
 
 
  Weird contradiction to do with creating temp files   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Oleg Nenashev  
 
 
Components: 
 _unsorted  
 
 
Created: 
 2016/Oct/22 9:11 PM  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Chris Kitching  
 

  
 
 
 
 

 
 The highly infuriating security system that cannot be turned off does not permit the use of File.createTempFile: "Scripts not permitted to use staticMethod java.io.File createTempFile java.lang.String java.lang.String" However, it has no issues at all with me just doing "sh('mktemp')", which is functionally equivalent. Indeed, I find myself frequently using shell scripts to work around security "features" like this. More thought apparently needs to be given to what is forbidden.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment