[JIRA] (JENKINS-34433) pipeline lock does not retry

2016-09-07 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino commented on  JENKINS-34433  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: pipeline lock does not retry   
 

  
 
 
 
 

 
 Another example, this time with a timeout: https://groups.google.com/d/msg/jenkinsci-users/MIVk-44cUcA/snKuC3PEAwAJ  
 

  
 
 
 
 

 
 
 

 
 
 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 https://groups.google.com/d/optout.


[JIRA] (JENKINS-37492) Propose adding `diff` utility step

2016-08-25 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino commented on  JENKINS-37492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Propose adding `diff` utility step   
 

  
 
 
 
 

 
 Thanks, Patrick Wolf, for the FilePath vs. FIle info. I have also confirmed that the shared global library code is trusted implicitly in recent versions as per https://issues.jenkins-ci.org/browse/JENKINS-34650, so yes, it would be possible to simply write the script and share it at https://github.com/jenkinsci/pipeline-examples/tree/master/global-library-examples. I will do so if I end up writing it. Michael Neale, I am personally interested in a simple "are two files the same?" step, not full diff functionality.  
 

  
 
 
 
 

 
 
 

 
 
 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 https://groups.google.com/d/optout.


[JIRA] (JENKINS-37492) Propose adding `diff` utility step

2016-08-22 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino commented on  JENKINS-37492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Propose adding `diff` utility step   
 

  
 
 
 
 

 
 Thanks. The below script does not work for me (I still get "new java.io.File java.lang.String Approving this signature may introduce a security vulnerability! You are advised to deny it."), and I am not running the latest workflow plugin, so it looks like I will have to upgrade to a newer core to get the fix from https://issues.jenkins-ci.org/browse/JENKINS-34650. I agree that adding a diff script is a relatively easy thing to do when that fix is applied, and the script could be shared at https://github.com/jenkinsci/pipeline-examples/tree/master/global-library-examples as you suggest. String call (String path)  { getFilePathNonCPS(path) } @NonCPS String getFilePathNonCPS(String path)  { new java.io.File(path).getAbsolutePath() } this  
 

  
 
 
 
 

 
 
 

 
 
 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 https://groups.google.com/d/optout.


[JIRA] (JENKINS-37492) Propose adding `diff` utility step

2016-08-22 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino commented on  JENKINS-37492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Propose adding `diff` utility step   
 

  
 
 
 
 

 
 I just added vars/getFile.groovy to my Jenkins global library as follows: String call(name)  { new java.io.File(name) } this Then I tried to invoke it from a Jenkinsfile (e.g. "echo getFile('/tmp').getAbsolutePath()") and received the error "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.io.File java.lang.String" with this stack trace: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.io.File java.lang.String at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectNew(StaticWhitelist.java:185) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:130) at org.kohsuke.groovy.sandbox.impl.Checker$3.call(Checker.java:191) at org.kohsuke.groovy.sandbox.impl.Checker.checkedConstructor(Checker.java:188) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.constructorCall(SandboxInvoker.java:19) etc... When I look at the script approval UI I see "new java.io.File java.lang.String Approving this signature may introduce a security vulnerability! You are advised to deny it." Am I missing something? It seems to me that the sandbox applies to the global library plugin at https://github.com/jenkinsci/workflow-cps-global-lib-plugin.  
 

  
 
 
 
 

 
 
 

 
 
 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 ema

[JIRA] (JENKINS-37492) Propose adding `diff` utility step

2016-08-22 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino commented on  JENKINS-37492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Propose adding `diff` utility step   
 

  
 
 
 
 

 
 Actually, I think the security issue is that it is not possible to use the Java File API without having to approve a method that – according to the script approval UI – opens a security vulnerability.  
 

  
 
 
 
 

 
 
 

 
 
 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 https://groups.google.com/d/optout.


[JIRA] (JENKINS-37492) Propose adding `diff` utility step

2016-08-20 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino edited a comment on  JENKINS-37492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Propose adding `diff` utility step   
 

  
 
 
 
 

 
 At a minimum, it would be helpful if two FileWrapper instances available via the  findFiies  findFiles  step from the Pipeline Utility Steps Plugin could be compared, perhaps like this: boolean comparedTheSame = firstFileWrapper.sameContentsAs(secondFileWrapper).  A "compareFiles" step would also be helpful, of course.  
 

  
 
 
 
 

 
 
 

 
 
 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 https://groups.google.com/d/optout.


[JIRA] (JENKINS-37492) Propose adding `diff` utility step

2016-08-20 Thread rndg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ron Dagostino commented on  JENKINS-37492  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Propose adding `diff` utility step   
 

  
 
 
 
 

 
 At a minimum, it would be helpful if two FileWrapper instances available via the findFiies step from the Pipeline Utility Steps Plugin could be compared, perhaps like this: boolean comparedTheSame = firstFileWrapper.sameContentsAs(secondFileWrapper). A "compareFiles" step would also be helpful, of course.  
 

  
 
 
 
 

 
 
 

 
 
 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 https://groups.google.com/d/optout.