-
Notifications
You must be signed in to change notification settings - Fork 194
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
JENKINS-73941 - Option to hide "Use Groovy Sandbox" for users without Administer permission globally in the system #948
Conversation
… Administer permission globally in the system
Co-authored-by: Carroll Chiou <cchiou@cloudbees.com>
Closing and reopening to run again the checks as there are some flaky failures |
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration.java
Outdated
Show resolved
Hide resolved
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration.java
Outdated
Show resolved
Hide resolved
plugin/src/test/resources/org/jenkinsci/plugins/workflow/cps/casc_test.yaml
Show resolved
Hide resolved
Co-authored-by: Antonio Muniz <amuniz@users.noreply.github.com>
…ugin incremental version
…ugin incremental version
...n/src/main/resources/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration/config.jelly
Show resolved
Hide resolved
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration.java
Outdated
Show resolved
Hide resolved
#948 (comment) There is no JCasC test here that I can see. |
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration.java
Show resolved
Hide resolved
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
Hi @jglick, we have implemented the CASC compatibility, so the breaking change does not apply after the latest commit. |
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/config/CPSConfiguration.java
Show resolved
Hide resolved
public void cascExport() throws Exception { | ||
ConfiguratorRegistry registry = ConfiguratorRegistry.get(); | ||
ConfigurationContext context = new ConfigurationContext(registry); | ||
CNode yourAttribute = getSecurityRoot(context).get("cps"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think more interesting would be to check what is then exported from the script-security
version.
JENKINS-73941
This is partially implemented in JENKINS-73470, where we created the new option "Hide Sandbox checkbox in pipeline jobs", but it was created in the scope of this plugin.
The scope of this ticket is just to create the global option at the "script-security-plugin", to be used by all plugins depending on the sandbox.
Script Security Plugin PR including this change:
jenkinsci/script-security-plugin#584
Testing done
Created new test method covering the changes + CASC.
Submitter checklist