[JIRA] [script-security-plugin] (JENKINS-35253) Whitelist Groovy capitalize method from String for sandbox

2016-05-31 Thread g...@netroworx.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Greg Pagendam-Turner updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35253 
 
 
 
  Whitelist Groovy capitalize method from String for sandbox  
 
 
 
 
 
 
 
 
 

Change By:
 
 Greg Pagendam-Turner 
 
 
 

Component/s:
 
 script-security-plugin 
 
 
 

Component/s:
 
 groovy-plugin 
 
 
 
 
 
 
 
 
 
 
 
 

 
 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] [groovy-plugin] (JENKINS-35253) Whitelist Groovy capitalize method from String for sandbox

2016-05-31 Thread g...@netroworx.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Greg Pagendam-Turner created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35253 
 
 
 
  Whitelist Groovy capitalize method from String for sandbox  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Improvement 
 
 
 

Assignee:
 
 vjuranek 
 
 
 

Components:
 

 groovy-plugin 
 
 
 

Created:
 

 2016/Jun/01 4:35 AM 
 
 
 

Priority:
 
  Minor 
 
 
 

Reporter:
 
 Greg Pagendam-Turner 
 
 
 
 
 
 
 
 
 
 
I get the following error when trying to pipeline build: 
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods capitalize java.lang.String 
It's triggered by the code in my pipeline definition: 
 def branchToBuild = "$ {env.JOB_NAME} 
".tokenize('-').last() def dockerTaskBranch = branchToBuild.capitalize() 
The capitalize method should be safe enough to call from the sandbox 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
   

[JIRA] (JENKINS-13252) Grails build step not finding grails

2012-03-27 Thread g...@netroworx.com (JIRA)
Greg Pagendam-Turner created JENKINS-13252:
--

 Summary: Grails build step not finding grails
 Key: JENKINS-13252
 URL: https://issues.jenkins-ci.org/browse/JENKINS-13252
 Project: Jenkins
  Issue Type: Bug
  Components: grails
 Environment: CentOS release 6.2 (Final)
Reporter: Greg Pagendam-Turner
Assignee: jeffg2one


I installed the grails plugin.

Went to Manage Jenkins and setup a grails instance called grails_2.0.1

I selected Install automatically

I selected Grails 2.0.1

Saved then created a new job that calls grails test-app target

Got the following job output:

[webapp] $ grails test-app -clean --non-interactive
FATAL: command execution failed
java.io.IOException: Cannot run program grails (in directory 
/var/lib/jenkins/jobs/liftyourgame-grails-master/workspace/webapp): 
java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at hudson.Proc$LocalProc.init(Proc.java:244)
at hudson.Proc$LocalProc.init(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
at hudson.Launcher$ProcStarter.start(Launcher.java:338)
at hudson.Launcher$ProcStarter.join(Launcher.java:345)
at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:217)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at 
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
at hudson.model.Build$RunnerImpl.build(Build.java:178)
at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)
at hudson.model.Run.run(Run.java:1404)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or 
directory
at java.lang.UNIXProcess.init(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 15 more
Build step 'Build With Grails' marked build as failure
Recording test results
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira