jenkinsci / jenkinsci/script-security-plugin
[JENKINS-47371] Reload Configuration from Disk does not work for Script Approvals XML
- Dominant language
- Java
- Stars
- 76
- Forks
- 181
- Avg merge
- 14h 55m
- Merged PRs (30d)
- 3
Description
Due to limitations with the Script Security Plugin such as https://issues.jenkins-ci.org/browse/JENKINS-43722 I have implemented a custom backup and restore mechanism which overwrites the scriptApprovals.xml on disk. The option "Reload Configuration from Disk" does not reload the script approvals and a full restart of Jenkins is required before the approvals lists are re-populated. This seems counter to the description of the option which states: "Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk."
---
Originally reported by
boon, imported from: Reload Configuration from Disk does not work for Script Approvals XML
Raw content of original issue
Due to limitations with the Script Security Plugin such as https://issues.jenkins-ci.org/browse/JENKINS-43722 I have implemented a custom backup and restore mechanism which overwrites the scriptApprovals.xml on disk. The option "Reload Configuration from Disk" does not reload the script approvals and a full restart of Jenkins is required before the approvals lists are re-populated. This seems counter to the description of the option which states: "Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk."
environment
```
Jenkins 2.49
Script Security Plugin 1.33
```
Contributor guide
Assessment
This issue has not been assessed yet.