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

Consistently use sandbox for CpsFlowDefinitions #110

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

basil
Copy link
Member

@basil basil commented Jul 20, 2019

While looking at the test suite for this plugin, I noticed the CpsFlowDefinitions in the tests don't consistently use the script security sandbox. Always using the script security sandbox makes the tests consistent with each other, and it's also a more realistic environment given that the script security sandbox should always be enabled in production. In this change, I replaced any usages of the deprecated single-argument constructor for CpsFlowDefinition with usages of the non-deprecated two-argument constructor, passing in true as the second argument in order to always enable the script security sandbox.

@dwnusbaum dwnusbaum merged commit ba378bb into jenkinsci:master Jul 22, 2019
@basil basil deleted the sandbox branch July 29, 2019 20:17
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

Successfully merging this pull request may close these issues.

2 participants