[jbosstools-issues] [JBoss JIRA] (JBIDE-25515) GetJBDSInstallerLink.groovy scripts has no permissions to use some features of Jenkins API

Lukáš Valach (JIRA) issues at jboss.org
Wed Dec 20 04:00:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-25515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507350#comment-13507350 ] 

Lukáš Valach commented on JBIDE-25515:
--------------------------------------

I avoided a security restrictions using [Scriptler Plugin|https://wiki.jenkins.io/display/JENKINS/Scriptler+Plugin]. GetJBDSInstallerLink.groovy is stored at Jenkins and may be executed using "Scriptlet script" build step.  

> GetJBDSInstallerLink.groovy scripts has no permissions to use some features of Jenkins API
> ------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25515
>                 URL: https://issues.jboss.org/browse/JBIDE-25515
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: qa
>    Affects Versions: 4.5.2.AM3
>            Reporter: Lukáš Valach
>            Assignee: Lukáš Valach
>             Fix For: 4.5.2.AM3
>
>
> A lot of installer tests are failing because after last update of Jenkins script \[1\] GetJBDSInstallerLink.groovy hasn't permission to use some features of Jenkins API.
> \[1\] https://github.com/jbdevstudio/jbdevstudio-qa/blob/master/jenkins-script/GetJBDSInstallerLink.groovy
> There is this error message in the log:
> {code}
> ERROR: Build step failed with exception
> org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.util.HashMap
> {code}
> The rights were limited for a security reason so I need to findout a workaround.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbosstools-issues mailing list