Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid Groovy calls that require script approval #11

Open
kthoms opened this issue Mar 22, 2019 · 0 comments
Open

Avoid Groovy calls that require script approval #11

kthoms opened this issue Mar 22, 2019 · 0 comments

Comments

@kthoms
Copy link
Collaborator

kthoms commented Mar 22, 2019

While there is control over script approvals on Xtext JIPP, there isn't in Xtext CJE based Jenkins. And it is unlikely that approval is granted for some Groovy functions.

In general, it should be avoided to do processing with scripts in Jenkinsfiles that might cause trouble with the Groovy Sandbox.

To avoid this there are multiple possibilities:

  • execute plan bash commands within Groovy functions. This is already done for multiple manipulations
  • executing Groovy via shell command. On CJE there is the possibility to run on docker images. Use docker pull docker.io/smoht/xtext-buildenv:latest. Everything that is valid there can be done.
  • Use a Jar from somewhere with CLI programs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant